-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (34 loc) · 1.01 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
name: Nix Build
on:
- push
- pull_request
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
experimental-features = nix-command flakes
allow-import-from-derivation = true
accept-flake-config = true
- uses: cachix/cachix-action@v12
with:
name: sgillespie
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build executable
run: nix build .
- name: Run tests
run: |
nix build \
.#checks.x86_64-linux."gibberish:test:spec" \
.#checks.x86_64-linux."gibberish:test:test" \
.#checks.x86_64-linux."gibberish:test:golden"
- name: Run static checks
run: nix build .#checks.x86_64-linux.fourmoluCheck .#checks.x86_64-linux.hlintCheck
- name: Run benchmarks
run: nix build .#gibberish:bench:main