forked from coq/coq
-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (52 loc) · 1.78 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
name: GitHub macOS CI
on: [push, pull_request]
permissions:
contents: read
jobs:
macOS:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
brew install gnu-time opam gtksourceview3 adwaita-icon-theme expat libxml2 pkg-config
pip3 install macpack
- name: Install OCaml dependencies
run: |
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
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.2.9.1
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" -warn-error yes -native-compiler no
make dunestrap
dune build -p coq-core,coq-stdlib,coqide-server,coqide,coq
env:
MACOSX_DEPLOYMENT_TARGET: "10.11"
NJOBS: "2"
- name: Install Coq
run: |
eval $(opam env)
dune install --prefix="$(pwd)/_install_ci" coq-core coq-stdlib coqide-server coqide coq
- 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 all
env:
NJOBS: "2"