-
Notifications
You must be signed in to change notification settings - Fork 17
48 lines (44 loc) · 1.35 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# The present workflow was made based on the following references:
# - https://github.com/actions/cache/blob/main/examples.md#haskell---cabal
# - https://github.com/haskell/time/blob/master/.github/workflows/ci.yml
# - https://github.com/stackbuilders/stache/blob/master/.github/workflows/ci.yaml
# - https://markkarpov.com/post/github-actions-for-haskell-ci.html
---
name: Build
on: push
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
haskell:
strategy:
fail-fast: true
matrix:
os:
# - macos-13 # x86_64-darwin
# - macos-latest # aarch64-darwin
- ubuntu-latest # x86_64-linux
installable:
- test-ghc8107
- test-ghc902
# exclude:
# - os: ubuntu-latest
# installable: test-ghc902
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v12
with:
extra-conf:
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Compile code
run: nix build .#${{ matrix.installable }}
- name: Run tests
run: nix run .#${{ matrix.installable }}
docker:
if: false
uses: ./.github/workflows/reusable-docker.yml
with:
push: false