diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 5048035..c494bbe 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -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