[actions] Fix uv install on windows

This commit is contained in:
Sebastian Goscik
2025-04-09 01:45:04 +01:00
parent 855607fa29
commit 3ec69a7a97

View File

@@ -24,11 +24,19 @@ jobs:
with:
python-version: ${{ matrix.python-versions }}
- name: Install uv
- name: Install uv (Unix)
if: runner.os != 'Windows'
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install uv (Windows)
if: runner.os == 'Windows'
run: |
iwr -useb https://astral.sh/uv/install.ps1 | iex
echo "$HOME\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install dev dependencies
run: |
uv sync --dev
@@ -60,11 +68,18 @@ jobs:
with:
python-version: '3.12'
- name: Install uv
- name: Install uv (Unix)
if: runner.os != 'Windows'
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install uv (Windows)
if: runner.os == 'Windows'
run: |
iwr -useb https://astral.sh/uv/install.ps1 | iex
echo "$HOME\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Build
run: uv build