-
Notifications
You must be signed in to change notification settings - Fork 13
28 lines (26 loc) · 1013 Bytes
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v16
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
substituters = https://hydra.iohk.io https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: cachix/cachix-action@v10
with:
name: aviaviavi
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: cachix,iohk,nix-community
- run: nix build
- run: nix develop --command /usr/bin/env -- bash -c 'hpack && cabal --ghc-options="-Wall -Wcompat -Werror" test'
- run: nix build ./.stack-flake
- run: nix develop ./.stack-flake --command /usr/bin/env -- bash -c 'hpack && cabal --ghc-options="-Wall -Wcompat -Werror" test'