Skip to content

Commit 8ea0083

Browse files
committed
GitHub CI with nix caches
1 parent 7d09fa5 commit 8ea0083

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/CI.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
workflow_dispatch:
6+
jobs:
7+
nix-build:
8+
name: Nix build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: cachix/install-nix-action@v14
13+
with:
14+
extra_nix_config: |
15+
substituters = https://hydra.iohk.io https://cache.nixos.org/ file://$HOME/nix.store
16+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
17+
require-sigs = false
18+
- uses: cachix/cachix-action@v8
19+
with:
20+
name: matplotlib-haskell
21+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
22+
- name: Build dependencies
23+
run: nix-build shell.nix
24+
- name: Build package
25+
run: nix-build -A matplotlib.components.tests
26+
- name: Build development tools
27+
run: stack --nix test

0 commit comments

Comments
 (0)