Skip to content

Commit

Permalink
Use rust-toolchain.toml for developers and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed May 9, 2021
1 parent 76f737b commit d6cc4e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "nightly-2021-05-08"
components = [ "rust-src", "rustfmt" ]
targets = [ "thumbv7em-none-eabi", "thumbv6m-none-eabi" ]

0 comments on commit d6cc4e7

Please sign in to comment.