-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GitHub action to run the tests
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
CI: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Rust prerequisites | ||
run: sudo apt update && sudo apt install -y curl build-essential pkg-config | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: clippy | ||
rustflags: '' # Use .cargo/config | ||
|
||
- uses: actions/checkout@v3 | ||
- run: cargo test --locked --release | ||
- run: cargo check --locked --release | ||
- run: cargo clippy --locked --release | ||
- run: cargo build --locked --release |