From fa8cb1b0cae1e7401b2ea785f232f8fcfe37f3de Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Tue, 7 Jul 2026 19:17:36 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20windows=20build=20=E2=80=94=20use=20pwsh?= =?UTF-8?q?=20instead=20of=20bash=20for=20Rust=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c001dce..040c0ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: