Fix Windows CI: use powershell instead of bash for uv steps
Some checks failed
Build & Release / Build app (x86_64-unknown-linux-gnu) (push) Has been cancelled
Build & Release / Build app (aarch64-apple-darwin) (push) Has been cancelled
Build & Release / Build app (x86_64-pc-windows-msvc) (push) Has been cancelled
Build & Release / Create Release (push) Has been cancelled
Build & Release / Build sidecar (aarch64-apple-darwin) (push) Has been cancelled
Build & Release / Build sidecar (x86_64-unknown-linux-gnu) (push) Has been cancelled
Build & Release / Build sidecar (x86_64-pc-windows-msvc) (push) Has been cancelled

Windows runner doesn't have bash. Split Python setup and build steps
into Unix (default shell) and Windows (powershell) variants.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-03-20 23:07:04 -07:00
parent b8d70539ec
commit a65ac439dd

View File

@@ -54,12 +54,23 @@ jobs:
echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
}
- name: Set up Python
shell: bash
- name: Set up Python (Unix)
if: matrix.platform != 'windows'
run: uv python install ${{ env.PYTHON_VERSION }}
- name: Build sidecar
shell: bash
- name: Set up Python (Windows)
if: matrix.platform == 'windows'
shell: powershell
run: uv python install ${{ env.PYTHON_VERSION }}
- name: Build sidecar (Unix)
if: matrix.platform != 'windows'
working-directory: python
run: uv run --python ${{ env.PYTHON_VERSION }} python build_sidecar.py --cpu-only
- name: Build sidecar (Windows)
if: matrix.platform == 'windows'
shell: powershell
working-directory: python
run: uv run --python ${{ env.PYTHON_VERSION }} python build_sidecar.py --cpu-only