Skip to content

Commit bfa0c82

Browse files
committed
ci: Lock Rust toolchain
1 parent 31895b5 commit bfa0c82

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ jobs:
1111
uses: hecrj/setup-rust-action@v1
1212
with:
1313
components: rustfmt
14-
# Note that `nightly` is required for `license_template_path`, as
15-
# it's an unstable feature.
16-
rust-version: nightly
14+
rust-version: nightly-2022-03-08
1715
- uses: actions/checkout@v2
18-
- run: cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
16+
- run: cargo fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
1917

2018
lint:
2119
runs-on: ubuntu-latest
@@ -24,6 +22,7 @@ jobs:
2422
uses: hecrj/setup-rust-action@v1
2523
with:
2624
components: clippy
25+
rust-version: nightly-2022-03-08
2726
- uses: actions/checkout@v2
2827
- run: cargo clippy --all-targets --all-features -- -D warnings
2928

@@ -42,13 +41,14 @@ jobs:
4241
uses: hecrj/setup-rust-action@v1
4342
with:
4443
targets: 'thumbv6m-none-eabi'
44+
rust-version: nightly-2022-03-08
4545
- uses: actions/checkout@master
4646
- run: cargo check --no-default-features --target thumbv6m-none-eabi
4747

4848
test:
4949
strategy:
5050
matrix:
51-
rust: [stable, beta, nightly]
51+
rust: [stable, beta, nightly, nightly-2022-03-08]
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: Setup Rust

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stable
1+
nightly-2022-03-08

0 commit comments

Comments
 (0)