Skip to content

Commit

Permalink
Switch from actions-rs/toolchain to dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jul 14, 2022
1 parent cf29dce commit 6a3aea8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -56,16 +51,13 @@ 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
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: --all --check
4 changes: 1 addition & 3 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,16 +29,13 @@ 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
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: --all --check

0 comments on commit 6a3aea8

Please sign in to comment.