-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (41 loc) · 1.32 KB
/
nix.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
38
39
40
41
name: "Nix"
on:
check_suite:
types: [completed]
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
nix-shell-and-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc:
- ghc90
- ghc92
- ghc94
- ghc96
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.ghc }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
extra-access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
extra-experimental-features = nix-command flakes ca-derivations
extra-substituters = https://cache.nixos.org/ https://cache.garnix.io/
extra-trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
require-sigs = true
sandbox = true
extra-system-features = nixos-test benchmark big-parallel kvm
- run: nix develop --command make check-format
- run: nix develop '.#${{ matrix.ghc }}' --command true
- run: nix build '.#moat-${{ matrix.ghc }}'