Skip to content

Commit

Permalink
ci: Use dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
The actions-rs/toolchain action seems to be lacking maintenance. And is not
official despite its official sounding namespace (actions-rs).
  • Loading branch information
jpgrayson committed Nov 8, 2022
1 parent d62388d commit c6d120e
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
- name: Build
run: |
cargo --locked build --all-features --profile ${{ matrix.profile }}
Expand Down Expand Up @@ -72,10 +71,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
- name: Run Unit Tests
run: |
cargo --locked test
Expand All @@ -87,10 +85,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
components: clippy
- name: Clippy Checks
run: |
Expand All @@ -103,10 +100,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
components: rustfmt
- name: Check formatting
run: |
Expand All @@ -119,10 +115,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
- name: Build docs
run: |
cargo rustdoc -- --deny warnings
Expand All @@ -134,10 +129,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
- name: Install dependencies
run: |
sudo apt-get update
Expand All @@ -164,10 +158,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
- name: Build
run: |
cargo --locked build --all-features --profile release
Expand Down

0 comments on commit c6d120e

Please sign in to comment.