-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 882 Bytes
/
build.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
name: Haskell CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check packages
run: |
nix flake check
# Build all devShells for the current system
# FIXME figure out how to add this to: nix flake check
# nix develop -c cabal test --dry-run
# nix develop .#ghc982-web-view -c cabal test --dry-run
# cd example
# nix develop ..#ghc966-example -c cabal test --dry-run
# nix develop ..#ghc982-example -c cabal test --dry-run