Skip to content

Commit

Permalink
Improve build-and-test CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed May 8, 2024
1 parent 0429392 commit 447802d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Cargo build and test
on: [pull_request, workflow_dispatch]
on:
pull_request:
- .github/workflows/*.yml
- '**/*.rs'
- Cargo.toml
- Cargo.lock
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "--deny warnings "
Expand All @@ -14,15 +20,15 @@ jobs:
rust: nightly
- os: ubuntu-latest
rust: 1.65.0
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: ATiltedTree/[email protected]
- uses: actions-rs/[email protected]
with:
rust-version: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }}
default: true

- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
Expand Down

0 comments on commit 447802d

Please sign in to comment.