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