diff options
-rw-r--r-- | .github/workflows/check.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..e6f82ea --- /dev/null +++ b/.github/workflows/check.yml | |||
@@ -0,0 +1,21 @@ | |||
1 | name: check | ||
2 | |||
3 | on: [ pull_request, push ] | ||
4 | |||
5 | env: | ||
6 | SCCACHE_GHA_ENABLED: "true" | ||
7 | RUSTC_WRAPPER: "sccache" | ||
8 | CARGO_TERM_COLOR: always | ||
9 | RUSTFLAGS: "-Dwarnings" | ||
10 | |||
11 | jobs: | ||
12 | check: | ||
13 | runs-on: ubuntu-latest | ||
14 | steps: | ||
15 | - name: run sccache | ||
16 | uses: mozilla-actions/[email protected] | ||
17 | |||
18 | - uses: actions/checkout@v4 | ||
19 | |||
20 | - run: cargo check --release | ||
21 | - run: cargo clippy --release | ||