Use rust-toolchain.toml for developers and CI
This commit is contained in:
parent
76f737bb0e
commit
854022dbee
9
.github/workflows/rust.yml
vendored
9
.github/workflows/rust.yml
vendored
@ -71,10 +71,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: stable
|
||||||
target: ${{ matrix.target }}
|
|
||||||
components: rust-src, rustfmt
|
|
||||||
override: true
|
|
||||||
- name: cache
|
- name: cache
|
||||||
id: cache-target
|
id: cache-target
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -90,8 +87,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: stable
|
||||||
components: rustfmt
|
|
||||||
override: true
|
|
||||||
- name: Check fmt
|
- name: Check fmt
|
||||||
run: for i in embassy-*; do (cd $i; cargo fmt -- --check); done
|
run: for i in embassy-*; do (cd $i; cargo fmt -- --check); done
|
||||||
|
6
rust-toolchain.toml
Normal file
6
rust-toolchain.toml
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user