Skip to content

Commit

Permalink
CI: Add stable and nightly toolchains to GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
j4r0u53k committed Jul 5, 2024
1 parent 2cc8a19 commit e58df3b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,26 @@ env:

jobs:
build:
strategy:
matrix:
toolchain:
- channel: stable
cargo_args: --verbose --all-targets
- channel: nightly
cargo_args: --verbose --all-targets --all-features

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup toolchain
run: >
rustup update ${{ matrix.toolchain.channel }} &&
rustup default ${{ matrix.toolchain.channel }} &&
rustup component add clippy
- name: Clippy
run: cargo clippy --verbose --all-targets --all-features
run: cargo clippy ${{ matrix.toolchain.cargo_args }}
- name: Build
run: cargo build --verbose --all-features
run: cargo build ${{ matrix.toolchain.cargo_args }}
- name: Run tests
run: cargo test --verbose --all-features -- --test-threads=1
run: cargo test ${{ matrix.toolchain.cargo_args }} -- --test-threads=1

0 comments on commit e58df3b

Please sign in to comment.