Skip to content

Commit

Permalink
test runs-on git bash
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Jan 28, 2025
1 parent 56840bf commit a36a7a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,24 @@ jobs:
# Download and install Git for Windows (which includes Git Bash)
Invoke-WebRequest -Uri https://github.com/git-for-windows/git/releases/download/v2.40.0.windows.1/Git-2.40.0-64-bit.exe -OutFile git-installer.exe
Start-Process -Wait -FilePath git-installer.exe -ArgumentList '/VERYSILENT', '/NORESTART'
# Prepend Git Bash to the PATH
$newPath = "C:\Program Files\Git\bin;$env:PATH"
echo "PATH=$newPath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
# Print PATH to verify it contains Git Bash path
echo $newPath
if: runner.os == 'Windows'

- name: Verify git-bash installation
shell: powershell
run: |
# Print PATH to verify it
echo $env:PATH
# Check if git and bash are accessible
git --version
bash --version
if: runner.os == 'Windows'

# This is a temporary workaround until the windows custom image is fixed or full windows image is available from upstream
Expand Down

0 comments on commit a36a7a1

Please sign in to comment.