fix: windows build — use pwsh instead of bash for Rust install
This commit is contained in:
@@ -35,11 +35,20 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with: { node-version: 20 }
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install Rust
|
||||
run: |
|
||||
if (-not (Get-Command rustc -ErrorAction SilentlyContinue)) {
|
||||
Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe
|
||||
.\rustup-init.exe -y --default-toolchain stable
|
||||
$env:Path += ";$env:USERPROFILE\.cargo\bin"
|
||||
}
|
||||
rustc --version
|
||||
shell: pwsh
|
||||
- name: Build frontend
|
||||
run: cd web; npm ci; npm run build
|
||||
- name: Build Tauri bundles
|
||||
run: cd web; npx tauri build
|
||||
run: cd web; $env:Path += ";$env:USERPROFILE\.cargo\bin"; npx tauri build
|
||||
shell: pwsh
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user