From 83725e1a2a2964a9a9e23a0215a30647ea651f77 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 14 Jun 2026 20:26:43 -0400 Subject: [PATCH] fix(ci): add Rust to PATH on Windows runner before cargo steps cargo.exe lives in %USERPROFILE%\.cargo\bin but act does not automatically export it into the CI subprocess PATH. Added an explicit step to append that directory to GITHUB_PATH, matching what the Linux job already does for $HOME/.cargo/bin. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e54b156..d1cf9fa 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -63,6 +63,18 @@ jobs: $ver = '${{ needs.prepare.outputs.version }}' node -e "const fs=require('fs');const d=JSON.parse(fs.readFileSync('src-tauri/tauri.conf.json','utf8'));d.version='$ver';fs.writeFileSync('src-tauri/tauri.conf.json',JSON.stringify(d,null,2),'utf8');" + - name: Add Rust to PATH + shell: powershell + run: | + $cargoDir = "$env:USERPROFILE\.cargo\bin" + if (Test-Path $cargoDir) { + Add-Content -Path $env:GITHUB_PATH -Value $cargoDir + Write-Host "Added $cargoDir to GITHUB_PATH" + } else { + Write-Error "Rust not found at $cargoDir — install rustup on this runner first" + exit 1 + } + - uses: Swatinem/rust-cache@v2 with: workspaces: src-tauri