fix(ci): use curl and CI=true to prevent Windows runner hang
This commit is contained in:
@@ -37,8 +37,8 @@ jobs:
|
|||||||
with: { node-version: 20 }
|
with: { node-version: 20 }
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |
|
run: |
|
||||||
powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe"
|
curl.exe -sLO https://win.rustup.rs/x86_64/rustup-init.exe
|
||||||
rustup-init.exe -y --default-toolchain stable
|
rustup-init.exe -y --default-toolchain stable --profile minimal
|
||||||
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
|
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
|
||||||
rustc --version
|
rustc --version
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@@ -46,6 +46,8 @@ jobs:
|
|||||||
run: cd web && npm ci && npm run build
|
run: cd web && npm ci && npm run build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- name: Build Tauri bundles
|
- name: Build Tauri bundles
|
||||||
|
env:
|
||||||
|
CI: "true"
|
||||||
run: cd web && set PATH=%USERPROFILE%\.cargo\bin;%PATH% && npx tauri build
|
run: cd web && set PATH=%USERPROFILE%\.cargo\bin;%PATH% && npx tauri build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user