forked from IHaskell/IHaskell
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (64 loc) · 1.74 KB
/
nix.yml
File metadata and controls
73 lines (64 loc) · 1.74 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Nix
on:
schedule:
- cron: '0 2 * * *'
push:
paths-ignore:
- 'demo/**'
- 'docker/**'
- 'Dockerfile'
- '.dockerignore'
- '.ghci'
- '.gitignore'
- 'images/**'
- 'notebooks/**'
- 'stack/**'
- 'README.md'
- '*.yaml'
pull_request:
paths-ignore:
- 'demo/**'
- 'docker/**'
- 'Dockerfile'
- '.dockerignore'
- '.ghci'
- '.gitignore'
- 'images/**'
- 'notebooks/**'
- 'stack/**'
- 'README.md'
- '*.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env:
- ihaskell-env-ghc98
- ihaskell-env-ghc910
- ihaskell-env-ghc912
- ihaskell-env-display-ghc98
# - ihaskell-env-display-ghc910
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v31
with:
install_url: https://releases.nixos.org/nix/nix-2.32.2/install
- uses: cachix/cachix-action@v14
with:
name: ihaskell
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Build environment ${{matrix.env}}
run: |
nix build .#${{matrix.env}}
- name: Check acceptance test for ${{matrix.env}}
# Don't bother running it with the display envs since we already run it
# with the basic envs, and it doesn't test any display stuff.
if: ${{ !(contains(matrix.env, fromJSON('"display"'))) }}
run: |
nix build .#checks.x86_64-linux.${{matrix.env}} -L