forked from coq/coq
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (56 loc) · 1.87 KB
/
ci-macos.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
61
62
63
64
65
66
name: GitHub macOS CI
on: [push, pull_request]
permissions:
contents: read
jobs:
macOS:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: homebrew outdated pkg-config fix
run: |
brew update
brew upgrade
brew install pkgconf
# work around https://github.com/actions/runner-images/issues/10984
- name: Install system dependencies
run: |
brew install gnu-time opam gtksourceview3 adwaita-icon-theme expat libxml2
- name: Install OCaml dependencies
run: |
opam init -a -j "$NJOBS" --compiler=ocaml-base-compiler.$COMPILER
opam switch set ocaml-base-compiler.$COMPILER
eval $(opam env)
opam update
opam install -j "$NJOBS" ocamlfind${FINDLIB_VER} ounit lablgtk3-sourceview3 zarith.1.11 dune.3.8.3
opam list
env:
COMPILER: "4.12.0"
FINDLIB_VER: ".1.8.1"
OPAMYES: "true"
MACOSX_DEPLOYMENT_TARGET: "10.11"
NJOBS: "2"
- name: Build Coq
run: |
eval $(opam env)
./configure -prefix "$(pwd)/_install_ci" -native-compiler no
make dunestrap
dune build -p coq-core,rocq-core,coqide-server,coqide
env:
MACOSX_DEPLOYMENT_TARGET: "10.11"
NJOBS: "2"
- name: Install Coq
run: |
eval $(opam env)
dune install --prefix="$(pwd)/_install_ci" coq-core rocq-core coqide-server coqide
- name: Run Coq Test Suite
run: |
eval $(opam env)
cd test-suite
make clean
export OCAMLPATH="$(pwd)/../_install_ci/lib":"$OCAMLPATH"
BIN="$(pwd)/../_install_ci/bin/"
LIB="$(pwd)/../_install_ci/lib/coq/"
make -j "$NJOBS" BIN="$BIN" COQLIB="$LIB" PRINT_LOGS=1 TIMED=1 all
env:
NJOBS: "2"