refactor: replace Rust toolchain installation with target addition in CI workflows
parent
555ad430c8
commit
f18fe220b4
|
@ -29,13 +29,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust stable toolchain
|
- name: Add Rust target
|
||||||
uses: actions-rs/toolchain@v1
|
run: |
|
||||||
with:
|
rustup update stable --no-self-update
|
||||||
toolchain: stable
|
rustup default stable
|
||||||
profile: minimal
|
rustup target add ${{ matrix.target_triple }}
|
||||||
target: ${{ matrix.target_triple }}
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
@ -66,14 +64,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Build for ${{ matrix.target }}
|
- name: Build for ${{ matrix.target }}
|
||||||
|
@ -108,13 +98,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust stable toolchain
|
- name: Add Rust target
|
||||||
uses: actions-rs/toolchain@v1
|
run: rustup target add ${{ matrix.target_triple }}
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
target: ${{ matrix.target_triple }}
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue