From 854022dbee4e37846ba554179182d679322dccd0 Mon Sep 17 00:00:00 2001 From: Rukai Date: Sat, 8 May 2021 13:48:47 +1000 Subject: [PATCH] Use rust-toolchain.toml for developers and CI --- .github/workflows/rust.yml | 9 ++------- rust-toolchain.toml | 6 ++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d7b427e0..8613f7e0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..2cb17797 --- /dev/null +++ b/rust-toolchain.toml @@ -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" ]