Skip to content

Commit 04f5d54

Browse files
authored
chore(ci): prefer raw toolchain setup (#873)
1 parent be8142a commit 04f5d54

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jobs:
9999
}
100100
101101
- name: Install Rust ${{ matrix.rust }}
102-
uses: dtolnay/rust-toolchain@master
103-
with:
104-
toolchain: ${{ matrix.rust }}
102+
run: |
103+
rustup override set ${{ matrix.rust }}
104+
rustup update ${{ matrix.rust }}
105105
106106
- name: Cache dependencies
107107
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
@@ -135,9 +135,10 @@ jobs:
135135
run: rm -f rust-toolchain.toml
136136

137137
- name: Install Rust
138-
uses: dtolnay/rust-toolchain@stable
139-
with:
140-
targets: armv7-linux-androideabi, aarch64-linux-android
138+
run: |
139+
rustup override set stable
140+
rustup update stable
141+
rustup target add armv7-linux-androideabi aarch64-linux-android
141142
142143
- name: Cache dependencies
143144
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
@@ -165,9 +166,10 @@ jobs:
165166
# run: rm -f rust-toolchain.toml
166167

167168
# - name: Install Rust
168-
# uses: dtolnay/rust-toolchain@nightly
169-
# with:
170-
# targets: wasm32-wasip2
169+
# run: |
170+
# rustup override set stable
171+
# rustup update stable
172+
# rustup target wasm32-wasip2
171173

172174
# - name: Cache dependencies
173175
# uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)