Skip to content

Commit 1eb7f5c

Browse files
committed
update action
1 parent 353981f commit 1eb7f5c

10 files changed

Lines changed: 2373 additions & 2 deletions

.github/workflows/migration-gates.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,21 @@ jobs:
4444

4545
- name: Setup Rust toolchain
4646
if: matrix.suite == 'tauri-rust-suite'
47-
uses: dtolnay/rust-toolchain@stable
47+
shell: pwsh
48+
run: |
49+
if (-not (Get-Command rustup -ErrorAction SilentlyContinue)) {
50+
Write-Host "rustup not found on runner, bootstrapping rustup-init..."
51+
Invoke-WebRequest -Uri "https://win.rustup.rs/x86_64" -OutFile "rustup-init.exe"
52+
.\rustup-init.exe -y --profile minimal --default-toolchain stable
53+
"$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
54+
$env:Path += ";$env:USERPROFILE\.cargo\bin"
55+
}
56+
57+
rustup set profile minimal
58+
rustup toolchain install stable --profile minimal --no-self-update
59+
rustup default stable
60+
rustc --version
61+
cargo --version
4862
4963
- name: Run gate
5064
run: ${{ matrix.command }}

0 commit comments

Comments
 (0)