Skip to content

Commit d17ea99

Browse files
committed
gh actions: Explicitly use rust-toolchain
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent c3edcaa commit d17ea99

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/firmware.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ jobs:
1313
continue-on-error: ${{ matrix.experimental || false }}
1414
strategy:
1515
matrix:
16-
# All generated code should be running on stable now
17-
# TODO: Also test nightly
18-
#rust: [nightly, stable]
19-
rust: [stable]
20-
#include:
21-
# # Nightly is only for reference and allowed to fail
22-
# - rust: nightly
23-
# experimental: true
2416
#os:
2517
# # Check compilation works on common OSes
2618
# # (i.e. no path issues)
@@ -30,10 +22,10 @@ jobs:
3022
runs-on: [ubuntu-latest] #${{ matrix.os }}
3123
steps:
3224
- uses: actions/checkout@v3
33-
- uses: dtolnay/rust-toolchain@master
34-
with:
35-
toolchain: ${{ matrix.rust }}
36-
target: thumbv6m-none-eabi
25+
26+
- name: Setup Rust toolchain
27+
run: rustup show
28+
3729
- run: cargo install flip-link
3830
- run: cargo build -p ledmatrix
3931
- run: cargo build -p b1display
@@ -65,10 +57,10 @@ jobs:
6557
- uses: actions/checkout@v3
6658
with:
6759
submodules: true
68-
- uses: dtolnay/rust-toolchain@stable
69-
with:
70-
components: clippy
71-
target: thumbv6m-none-eabi
60+
61+
- name: Setup Rust toolchain
62+
run: rustup show
63+
7264
- run: |
7365
cargo clippy -p b1display -- --deny=warnings
7466
cargo clippy -p c1minimal -- --deny=warnings
@@ -81,8 +73,8 @@ jobs:
8173
- uses: actions/checkout@v3
8274
with:
8375
submodules: true
84-
- uses: dtolnay/rust-toolchain@stable
85-
with:
86-
components: rustfmt
87-
target: thumbv6m-none-eabi
76+
77+
- name: Setup Rust toolchain
78+
run: rustup show
79+
8880
- run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)