diff options
| -rw-r--r-- | .github/workflows/rust.yml | 9 | ||||
| -rw-r--r-- | rust-toolchain.toml | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d7b427e04..8613f7e0d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml | |||
| @@ -71,10 +71,7 @@ jobs: | |||
| 71 | - uses: actions/checkout@v2 | 71 | - uses: actions/checkout@v2 |
| 72 | - uses: actions-rs/toolchain@v1 | 72 | - uses: actions-rs/toolchain@v1 |
| 73 | with: | 73 | with: |
| 74 | toolchain: nightly | 74 | toolchain: stable |
| 75 | target: ${{ matrix.target }} | ||
| 76 | components: rust-src, rustfmt | ||
| 77 | override: true | ||
| 78 | - name: cache | 75 | - name: cache |
| 79 | id: cache-target | 76 | id: cache-target |
| 80 | uses: actions/cache@v2 | 77 | uses: actions/cache@v2 |
| @@ -90,8 +87,6 @@ jobs: | |||
| 90 | - uses: actions/checkout@v2 | 87 | - uses: actions/checkout@v2 |
| 91 | - uses: actions-rs/toolchain@v1 | 88 | - uses: actions-rs/toolchain@v1 |
| 92 | with: | 89 | with: |
| 93 | toolchain: nightly | 90 | toolchain: stable |
| 94 | components: rustfmt | ||
| 95 | override: true | ||
| 96 | - name: Check fmt | 91 | - name: Check fmt |
| 97 | run: for i in embassy-*; do (cd $i; cargo fmt -- --check); done | 92 | 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 000000000..2cb177974 --- /dev/null +++ b/rust-toolchain.toml | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # Before upgrading check that everything is available on all tier1 targets here: | ||
| 2 | # https://rust-lang.github.io/rustup-components-history | ||
| 3 | [toolchain] | ||
| 4 | channel = "nightly-2021-05-07" | ||
| 5 | components = [ "rust-src", "rustfmt" ] | ||
| 6 | targets = [ "thumbv7em-none-eabi", "thumbv6m-none-eabi" ] | ||
