chore: Replace actions-rs/toolchain with dtolnay/rust-toolchain
@@ -37,10 +37,7 @@ jobs:
if: (matrix.os == 'ubuntu-latest') || (matrix.os == 'ubuntu-20.04')
- name: Install stable toolchain
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0
@@ -85,11 +82,9 @@ jobs:
if: matrix.os == 'ubuntu-latest'
- name: Install stable toolchain
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- override: true
- target: thumbv7m-none-eabi
+ targets: thumbv7m-none-eabi
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0
@@ -108,13 +103,9 @@ jobs:
uses: actions/checkout@v3
- name: Install stable toolchain
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- override: true
-
- - name: Install rustfmt
- run: rustup component add rustfmt
+ components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1.0.3
@@ -135,13 +126,9 @@ jobs:
sudo apt install -y libusb-1.0-0-dev libudev-dev
- name: Install stable toolchain
- uses: actions-rs/toolchain@v1.0.7
+ uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- override: true
-
- - name: Install clippy
- run: rustup component add clippy
+ components: clippy
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0
@@ -165,10 +152,7 @@ jobs:
sudo apt install -y libusb-1.0-0-dev libudev-dev
- name: Install stable toolchain
- uses: actions-rs/toolchain@v1.0.7
- with:
- toolchain: stable
- override: true
+ uses: dtolnay/rust-toolchain@stable
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0
