Skip to content

Commit 64ef8b4

Browse files
fix(ci): use pwsh for Rust setup and npm ci on Windows
WSL bash (C:\Windows\system32\bash.EXE) on the self-hosted Windows runner cannot access the workspace path. Both dtolnay/rust-toolchain and actions-rust-lang/setup-rust-toolchain use bash steps internally, so bypass them on Windows and call rustup directly via PowerShell. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 91b469c commit 64ef8b4

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/actions/setup-tauri-build/action.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,29 @@ runs:
4141
with:
4242
node-version: ${{ inputs.node-version }}
4343

44-
- name: Setup Rust
44+
- name: Setup Rust (non-Windows)
45+
if: runner.os != 'Windows'
4546
uses: actions-rust-lang/setup-rust-toolchain@v1
4647
with:
4748
toolchain: stable
4849

49-
- name: Install frontend dependencies
50+
- name: Setup Rust (Windows)
51+
if: runner.os == 'Windows'
52+
shell: pwsh
53+
run: |
54+
rustup default stable
55+
rustup update stable
56+
rustc --version
57+
cargo --version
58+
59+
- name: Install frontend dependencies (non-Windows)
60+
if: runner.os != 'Windows'
5061
shell: bash
5162
working-directory: ./app/frontend
5263
run: npm ci
64+
65+
- name: Install frontend dependencies (Windows)
66+
if: runner.os == 'Windows'
67+
shell: pwsh
68+
working-directory: ./app/frontend
69+
run: npm ci

0 commit comments

Comments
 (0)