Skip to content

Commit

Permalink
Update the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Apr 20, 2024
1 parent bc3eda0 commit 72ae00a
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,38 @@ jobs:
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install valgrind
run: sudo apt update && sudo apt install -y valgrind
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
run: rustup toolchain install ${{ matrix.rust }}
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all-features
run: cargo +${{ matrix.rust }} build --verbose
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all-features
run: cargo +${{ matrix.rust }} test --verbose
- name: Run C bindings tests
run: make -C tests clean test
formatting:
name: Cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
- uses: actions/checkout@v4
- name: Update Rust
run: rustup update stable
- name: Run cargo fmt
run: cargo +stable fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Rust
run: rustup update stable
- name: Run clippy
run: cargo +stable clippy --all-features
cargo-deny:
name: Check dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1

0 comments on commit 72ae00a

Please sign in to comment.