-
Notifications
You must be signed in to change notification settings - Fork 18
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
ac7770b
commit 5e67825
Showing
1 changed file
with
44 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,44 @@ | ||
on: [push, pull_request] | ||
|
||
name: check everything | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
jobs: | ||
cargo-check: | ||
name: cargo-check | ||
runs-on: ${{matrix.os}}-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Install dependencies # for glfw and rfd | ||
if: ${{matrix.os == 'ubuntu'}} | ||
run: sudo apt update && sudo apt install --no-install-recommends libglfw3-dev libgtk-3-dev | ||
|
||
- name: Fmt | ||
run: cargo fmt --check | ||
|
||
- name: Check | ||
run: cargo check --workspace | ||
|
||
- name: Clippy | ||
run: cargo clippy --workspace -- -D warnings | ||
|
||
- name: Build | ||
run: cargo build --workspace | ||
|
||
- name: Audit | ||
run: cargo audit |