-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 984 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
28
29
30
31
32
33
name: "CI"
on:
# Run only when pushing to main branch, and making PRs
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Cache Nix dependencies
run: |
nix develop -j 4 -c echo
# - name: Flake checks
# run: |
# # Sandbox must be disabled due to HLS,
# # https://github.com/haskell/haskell-language-server/issues/3128
# nix --option sandbox false build .#check --no-link -L
# TODO: Remove after https://github.com/srid/haskell-flake/issues/19
- name: Hlint
run: |
nix develop -j auto -c hlint src
- name: Build
id: build
run: |
nix build -j auto -L