forked from creichert/esqueleto-textsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.08 KB
/
nix.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
name: "Nix"
on:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Local cache
uses: actions/cache@v3
with:
path: /nix/store
key: "${{ runner.os }}-nix-cache"
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# follow guide: https://nix.dev/tutorials/continuous-integration-github-actions
# this uses the tokens which are revokable
- uses: cachix/cachix-action@v12
with:
name: jappie
# If you chose API tokens for write access OR if you have a private cache
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix build -Lv
# - run: nix flake check -Lv # github actions doesn't support a vm, requires the test suite to become an executable
- run: nix develop -Lv -c echo OK
# legacy actions
- run: nix-build
- run: nix-shell --run "echo OK"