refactor: replace Rust toolchain installation with target addition in CI workflows
parent
555ad430c8
commit
f18fe220b4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue