-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68b3b9c
commit c0a2d76
Showing
1 changed file
with
38 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,38 @@ | ||
name: Test all targets | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
quick-tests: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Install build dependencies | ||
uses: awalsh128/cache-apt-pkgs-action@v1 | ||
with: | ||
packages: | | ||
curl \ | ||
git | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set directory to safe for git | ||
# Note: Required by vergen (https://crates.io/crates/vergen) | ||
run: git config --global --add safe.directory $GITHUB_WORKSPACE | ||
|
||
- name: Install build dependencies - Rustup | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y | ||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
- name: Check style | ||
run: cargo fmt --check | ||
|
||
- name: Check clippy | ||
run: cargo clippy --all-features | ||
|
||
- name: Build | ||
run: cargo build --verbose |