-
Notifications
You must be signed in to change notification settings - Fork 12
27 lines (27 loc) · 903 Bytes
/
CI.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
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
nix-build:
name: Nix build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v14
with:
extra_nix_config: |
substituters = https://hydra.iohk.io https://cache.nixos.org/ file://$HOME/nix.store
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
require-sigs = false
- uses: cachix/cachix-action@v10
with:
name: matplotlib-haskell
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build dependencies
run: nix-build shell.nix
- name: Build package
run: nix-build -A matplotlib.components.tests
- name: Build development tools
run: stack --nix test