Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lhvy committed Dec 23, 2024
1 parent e1bf242 commit 6f75657
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,26 @@ env:

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

- name: Set up Rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- name: Format
run: cargo fmt --check

- name: Build
run: cargo build --verbose --locked

- name: Lint
run: cargo clippy --all-targets --all-features

- name: Test
run: cargo test --verbose --locked

0 comments on commit 6f75657

Please sign in to comment.