Skip to content

Commit

Permalink
Fix for invalid syntax for powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Oct 29, 2024
1 parent a5718c1 commit 9aa8250
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,17 @@ jobs:
java-version: ${{ matrix.info.java }}

- uses: astral-sh/setup-uv@v3
- run: |
run: |
uv python install ${{ matrix.info.python }}
uv venv --python ${{ matrix.info.python }}
if [ ${{ matrix.info.machine }} == 'windows-2022' ]; then
.venv\Scripts\Activate.ps1
else
source .venv/bin/activate
fi
- if : ${{ startsWith(matrix.info.machine, 'windows')}}
run: |
.venv\Scripts\Activate.ps1
uv pip install pip
echo PATH=$PATH >> $GITHUB_PATH
- if : ${{ ! startsWith(matrix.info.machine, 'windows')}}
run: |
source .venv/bin/activate
uv pip install pip
echo PATH=$PATH >> $GITHUB_PATH
Expand Down

0 comments on commit 9aa8250

Please sign in to comment.