-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.4 KB
/
build.yaml
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
38
39
40
41
42
43
44
45
46
47
name: build
on: push
jobs:
check:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: rose
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build Nix
run: nix build -j8 .#devShells.x86_64-linux.default
- name: Zig Cache
uses: actions/cache@v4
with:
path: rose-zig/zig-cache
key: ${{ runner.os }}-rose-zig
save-always: true
- name: Typecheck
if: success() || failure() # Means that we run all steps even if one fails.
run: nix develop --command make typecheck
- name: Test
if: success() || failure()
run: nix develop --command make test
- name: Lint
if: success() || failure()
run: nix develop --command make lintcheck
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: rose
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build Nix
run: nix build -j8 .#devShells.x86_64-linux.default
- name: Build
if: success() || failure()
run: nix build .#all