Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
vitvakatu committed Dec 20, 2024
1 parent 708f313 commit 056cc23
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/gui-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,48 +20,6 @@ jobs:
name: 👮 Lint GUI
runs-on: ubuntu-latest
steps:
- name: Check Git and bash locations
shell: pwsh
if: runner.os == 'Windows'
run: |
Write-Host "Checking Git installation..." -ForegroundColor Yellow
$gitExe = (Get-Command git.exe).Path
Write-Host "Git executable: $gitExe"
Write-Host "`nGit version:" -ForegroundColor Yellow
git --version
Write-Host "`nChecking for bash in Git directory..." -ForegroundColor Yellow
$gitDir = Split-Path $gitExe -Parent
$expectedBashPath = Join-Path (Split-Path $gitDir -Parent) "bin\bash.exe"
if (Test-Path $expectedBashPath) {
Write-Host "Found bash.exe at: $expectedBashPath"
& $expectedBashPath --version
} else {
Write-Host "bash.exe not found at expected path: $expectedBashPath"
}
Write-Host "`nAll bash.exe locations in PATH:" -ForegroundColor Yellow
Get-Command bash.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path
- name: Add Git bin to PATH and check bash
shell: cmd
if: runner.os == 'Windows'
run: |
echo "Original PATH:"
echo %PATH%
echo.
echo "Adding Git bin to PATH..."
set "PATH=C:\Program Files\Git\bin;%PATH%"
echo.
echo "New PATH:"
echo %PATH%
echo.
echo "Checking for bash.exe..."
where bash.exe
echo.
echo "Verifying bash version:"
bash --version
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/ide-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,48 @@ jobs:
- self-hosted
- Windows
steps:
- name: Check Git and bash locations
shell: pwsh
if: runner.os == 'Windows'
run: |
Write-Host "Checking Git installation..." -ForegroundColor Yellow
$gitExe = (Get-Command git.exe).Path
Write-Host "Git executable: $gitExe"
Write-Host "`nGit version:" -ForegroundColor Yellow
git --version
Write-Host "`nChecking for bash in Git directory..." -ForegroundColor Yellow
$gitDir = Split-Path $gitExe -Parent
$expectedBashPath = Join-Path (Split-Path $gitDir -Parent) "bin\bash.exe"
if (Test-Path $expectedBashPath) {
Write-Host "Found bash.exe at: $expectedBashPath"
& $expectedBashPath --version
} else {
Write-Host "bash.exe not found at expected path: $expectedBashPath"
}
Write-Host "`nAll bash.exe locations in PATH:" -ForegroundColor Yellow
Get-Command bash.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path
- name: Add Git bin to PATH and check bash
shell: cmd
if: runner.os == 'Windows'
run: |
echo "Original PATH:"
echo %PATH%
echo.
echo "Adding Git bin to PATH..."
set "PATH=C:\Program Files\Git\bin;%PATH%"
echo.
echo "New PATH:"
echo %PATH%
echo.
echo "Checking for bash.exe..."
where bash.exe
echo.
echo "Verifying bash version:"
bash --version
- if: startsWith(runner.name, 'GitHub Actions') || startsWith(runner.name, 'Hosted Agent')
name: Installing wasm-pack
uses: jetli/[email protected]
Expand Down

0 comments on commit 056cc23

Please sign in to comment.