Skip to content

Commit 56fb0f7

Browse files
committed
use setup-rust-toolchain action
1 parent b9fb59e commit 56fb0f7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
- target: aarch64-apple-darwin
2929
runner: macos-15
3030
cross: false
31-
# - target: aarch64-pc-windows-msvc
32-
# runner: windows-11-arm
33-
# cross: false
34-
# executable: proxy-scraper-checker.exe
31+
- target: aarch64-pc-windows-msvc
32+
runner: windows-11-arm
33+
cross: false
34+
executable: proxy-scraper-checker.exe
3535
- target: aarch64-unknown-linux-gnu
3636
runner: ubuntu-24.04-arm
3737
cross: false
@@ -231,16 +231,14 @@ jobs:
231231
cross: true
232232
fail-fast: false
233233
runs-on: ${{ matrix.runner }}
234-
env:
235-
SCCACHE_GHA_ENABLED: "true"
236-
RUSTC_WRAPPER: "sccache"
237234
steps:
238235
- uses: actions/checkout@v4
239236
with:
240237
persist-credentials: false
241-
- run: rustup toolchain install beta --profile minimal --target '${{ matrix.target }}' --allow-downgrade
242-
- run: rustup default beta
243-
- uses: mozilla-actions/sccache-action@v0.0.9
238+
- uses: actions-rust-lang/setup-rust-toolchain@v1
239+
with:
240+
toolchain: beta
241+
target: ${{ matrix.target }}
244242
- if: ${{ matrix.cross }}
245243
run: cargo +beta install cross --git https://github.com/cross-rs/cross
246244
- if: ${{ matrix.cross }}
@@ -396,15 +394,14 @@ jobs:
396394
- "--features tui"
397395
- ""
398396
fail-fast: false
399-
env:
400-
SCCACHE_GHA_ENABLED: "true"
401-
RUSTC_WRAPPER: "sccache"
402397
steps:
403398
- uses: actions/checkout@v4
404399
with:
405400
persist-credentials: false
406-
- run: rustup toolchain install beta --profile minimal --component clippy --allow-downgrade
407-
- uses: mozilla-actions/sccache-action@v0.0.9
401+
- uses: actions-rust-lang/setup-rust-toolchain@v1
402+
with:
403+
toolchain: beta
404+
components: clippy
408405
- run: cargo +beta clippy --all-targets ${{ matrix.features }} -- -Dwarnings
409406
pre-commit:
410407
runs-on: ubuntu-24.04
@@ -424,5 +421,8 @@ jobs:
424421
- uses: actions/checkout@v4
425422
with:
426423
persist-credentials: false
427-
- run: rustup toolchain install nightly --profile minimal --component rustfmt --allow-downgrade
424+
- uses: actions-rust-lang/setup-rust-toolchain@v1
425+
with:
426+
toolchain: nightly
427+
components: rustfmt
428428
- run: cargo +nightly fmt --check

0 commit comments

Comments
 (0)