-
-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (34 loc) · 904 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Check
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
# https://github.com/Mozilla-Actions/sccache-action#rust-code
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
jobs:
check:
name: check
runs-on: ubuntu-latest
if: "!startsWith(github.ref, 'refs/tags')"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
# - uses: dtolnay/rust-toolchain@nightly
# - uses: rui314/setup-mold@v1
# - uses: taiki-e/install-action@just
# - uses: mozilla-actions/sccache-action@v0.0.3
# - run: just fmt --check
# - run: just check
# - run: just lint
# - run: just test