Merge pull request #167 from rukai/use_rust_toolchain_toml

Use rust-toolchain.toml for developers and CI
This commit is contained in:
Dario Nieuwenhuis 2021-05-10 00:33:32 +02:00 committed by GitHub
commit 1703700970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -71,10 +71,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: ${{ matrix.target }}
components: rust-src, rustfmt
override: true
toolchain: stable
- name: cache
id: cache-target
uses: actions/cache@v2
@ -90,8 +87,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
override: true
toolchain: stable
- name: Check fmt
run: for i in embassy-*; do (cd $i; cargo fmt -- --check); done

6
rust-toolchain.toml Normal file
View file

@ -0,0 +1,6 @@
# Before upgrading check that everything is available on all tier1 targets here:
# https://rust-lang.github.io/rustup-components-history
[toolchain]
channel = "nightly-2021-05-07"
components = [ "rust-src", "rustfmt" ]
targets = [ "thumbv7em-none-eabi", "thumbv6m-none-eabi" ]