diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49e6629b19d..bded86899f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,9 @@ jobs: uses: actions/checkout@v2 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - profile: minimal + run: | + rustup show + rustup target add ${{ matrix.target }} - name: Install build dependencies run: > diff --git a/.github/workflows/firmwares.yml b/.github/workflows/firmwares.yml index f94be86d5a9..194eaea4c5e 100644 --- a/.github/workflows/firmwares.yml +++ b/.github/workflows/firmwares.yml @@ -32,14 +32,11 @@ jobs: with: release: "10-2020-q4" - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - target: thumbv8m.main-none-eabi - override: true - components: llvm-tools-preview - + - name: Install rustup toolchain + run: | + rustup show + rustup component add llvm-tools-preview + rustup target add thumbv8m.main-none-eabi - name: cargo install cargo-binutils uses: actions-rs/install@v0.1 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000000..7b02e0c1085 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "1.66.1" +profile = "minimal" +components = ["rustfmt", "clippy"]