-
Notifications
You must be signed in to change notification settings - Fork 428
61 lines (53 loc) · 1.67 KB
/
nix-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
49
50
51
52
53
54
55
56
57
58
59
60
name: Nix Pipeline
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ubuntu-tests:
name: Build and test (Ubuntu) (${{ matrix.ocaml-version }})
strategy:
matrix:
ocaml-version:
- 4_14
- 5_0
- 5_1
- 5_2
- 5_3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v29
with:
extra_nix_config: |
extra-substituters = https://anmonteiro.nix-cache.workers.dev
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
- name: "Run nix-build"
run: nix-build ./nix/ci.nix --argstr ocamlVersion ${{ matrix.ocaml-version }}
macos-tests:
name: Build and test (${{ matrix.setup.os }}) (${{ matrix.setup.ocaml-version }})
strategy:
matrix:
setup:
- {ocaml-version: '5_2', os: macos-13}
- {ocaml-version: '4_14', os: macos-14}
- {ocaml-version: '5_2', os: macos-14}
- {ocaml-version: '5_3', os: macos-14}
runs-on: ${{ matrix.setup.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v29
with:
extra_nix_config: |
extra-substituters = https://anmonteiro.nix-cache.workers.dev
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
- name: "Run nix-build"
run: nix-build ./nix/ci.nix --argstr ocamlVersion ${{ matrix.setup.ocaml-version }}