refactor: replace Rust toolchain installation with target addition in CI workflows

main
Yoo1tic 2025-08-11 01:36:38 +08:00
parent 555ad430c8
commit f18fe220b4
1 changed files with 7 additions and 22 deletions

View File

@ -29,13 +29,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.target_triple }}
override: true
- name: Add Rust target
run: |
rustup update stable --no-self-update
rustup default stable
rustup target add ${{ matrix.target_triple }}
- uses: Swatinem/rust-cache@v2
@ -66,14 +64,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.target_triple }}
override: true
- uses: Swatinem/rust-cache@v2
- name: Build for ${{ matrix.target }}
@ -108,13 +98,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.target_triple }}
override: true
- name: Add Rust target
run: rustup target add ${{ matrix.target_triple }}
- uses: Swatinem/rust-cache@v2