Skip to content

Commit

Permalink
ci: Lock Rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
MazterQyou committed Dec 1, 2022
1 parent 31895b5 commit bfa0c82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ jobs:
uses: hecrj/setup-rust-action@v1
with:
components: rustfmt
# Note that `nightly` is required for `license_template_path`, as
# it's an unstable feature.
rust-version: nightly
rust-version: nightly-2022-03-08
- uses: actions/checkout@v2
- run: cargo +nightly fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')
- run: cargo fmt -- --check --config-path <(echo 'license_template_path = "HEADER"')

lint:
runs-on: ubuntu-latest
Expand All @@ -24,6 +22,7 @@ jobs:
uses: hecrj/setup-rust-action@v1
with:
components: clippy
rust-version: nightly-2022-03-08
- uses: actions/checkout@v2
- run: cargo clippy --all-targets --all-features -- -D warnings

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

test:
strategy:
matrix:
rust: [stable, beta, nightly]
rust: [stable, beta, nightly, nightly-2022-03-08]
runs-on: ubuntu-latest
steps:
- name: Setup Rust
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
stable
nightly-2022-03-08

0 comments on commit bfa0c82

Please sign in to comment.