Skip to content

Commit

Permalink
Merge pull request #41 from communityvi/use-maintained-github-actions
Browse files Browse the repository at this point in the history
CI: Use maintained dtolnay/rust-toolchain
  • Loading branch information
FSMaxB authored Jan 22, 2024
2 parents 9b987da + c1c687c commit 069c9d9
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Check all features
run: cargo check --tests --all-features
Expand All @@ -36,18 +33,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
default: true
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --tests
- name: Run clippy linter
run: cargo clippy --all-features --tests --workspace -- -D warnings
test:
name: Test
runs-on: ${{ matrix.os }}
Expand All @@ -58,11 +51,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: clippy, rustfmt
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --all-features
Expand Down

0 comments on commit 069c9d9

Please sign in to comment.