Skip to content

Commit

Permalink
Improving cargo CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbor committed Apr 3, 2024
1 parent a8b7900 commit e7037f2
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Rust project - latest
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo build --verbose

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo test --verbose

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo clippy --verbose


0 comments on commit e7037f2

Please sign in to comment.