From 6a3aea841a90c320ee32c216b13f796e71de836f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 14 Jul 2022 14:43:12 -0700 Subject: [PATCH] Switch from actions-rs/toolchain to dtolnay/rust-toolchain --- .github/workflows/ci.yaml | 16 ++++------------ .github/workflows/master.yaml | 4 +--- .github/workflows/pr.yaml | 11 +++-------- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ab33784..a75422d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,11 +15,9 @@ jobs: rust: [1.31.0, stable, beta, nightly] steps: - name: Rust install - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - name: Checkout uses: actions/checkout@v3 - name: Build @@ -35,11 +33,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Rust install - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - profile: minimal - override: true target: thumbv6m-none-eabi - name: Checkout uses: actions/checkout@v3 @@ -56,11 +51,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Rust install - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@1.62.0 with: - toolchain: 1.42.0 - profile: minimal - override: true components: rustfmt - name: Checkout uses: actions/checkout@v3 @@ -68,4 +60,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: fmt - args: --all -- --check + args: --all --check diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index 3cb61a0..b731c23 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -16,11 +16,9 @@ jobs: rust: [1.31.0, stable] steps: - name: Rust install - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - name: Checkout uses: actions/checkout@v3 - name: Build diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 964f39b..ccc1327 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -12,11 +12,9 @@ jobs: rust: [1.31.0, stable] steps: - name: Rust install - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - name: Checkout uses: actions/checkout@v3 - name: Build @@ -31,11 +29,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Rust install - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@1.62.0 with: - toolchain: 1.42.0 - profile: minimal - override: true components: rustfmt - name: Checkout uses: actions/checkout@v3 @@ -43,4 +38,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: fmt - args: --all -- --check + args: --all --check