-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|