-
-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (45 loc) · 1.46 KB
/
opam.yml
File metadata and controls
55 lines (45 loc) · 1.46 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
name: Opam
on:
push:
branches: [main]
pull_request:
# This will cancel previous runs when a branch or PR is updated
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ocaml-compiler: [4.13.1, 4.14.1, 5.3.0]
steps:
- name: Setup node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "22"
check-latest: true
- name: Checkout project
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: true
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@4dd53a587b9836a35604fec9601e606ff42145bc # v3.4.1
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Inspect depexts
run: |
opam exec -- which cmake
opam exec -- which gcc
opam exec -- which g++
opam exec -- gcc --version
opam exec -- g++ --version
- name: Install local dependencies
run: opam install . --deps-only --with-test
- name: Build project
run: opam exec -- dune build
- name: Run tests
run: opam exec -- dune runtest --display=short