Skip to content

Commit 4ac952d

Browse files
committed
Chore: force installation of rust-toolchain in CI
1 parent 2ce5a36 commit 4ac952d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- { rust: nightly, os: ubuntu-latest }
22-
- { rust: nightly, os: windows-latest }
21+
- os: ubuntu-20.04
22+
target: x86_64-unknown-linux-gnu
23+
- os: windows-latest
24+
target: x86_64-pc-windows-msvc
2325
steps:
2426
- name: Checkout repository
2527
uses: actions/checkout@v2
@@ -30,11 +32,12 @@ jobs:
3032
with:
3133
cuda: '11.2.2'
3234

33-
- name: Setup Rust
34-
uses: hecrj/setup-rust-action@v1
35-
with:
36-
rust-version: ${{ matrix.rust }}
37-
components: clippy,rustfmt
35+
# random command that forces rustup to install stuff in rust-toolchain
36+
- name: Install rust-toolchain
37+
run: cargo version
38+
39+
- name: Add rustup components
40+
run: rustup component add rustfmt clippy
3841

3942
- name: Load Rust Cache
4043
uses: Swatinem/rust-cache@v1

0 commit comments

Comments
 (0)