-
Notifications
You must be signed in to change notification settings - Fork 10
64 lines (52 loc) · 1.55 KB
/
master52.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
name: Build master in docker (OCaml 5.2)
on:
push:
branches:
- 'master'
paths-ignore:
- 'README.md'
env:
OPAMROOT: /home/opam/.opam
OPAMCONFIRMLEVEL: unsafe-yes
GT_WITH_DOCS: yes
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ${{ matrix.os }}
container:
image: ocaml/opam:ubuntu-lts-ocaml-5.2
options: --user root # Kind of important dirty hack
#options: --user opam # dirty hack
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- run: |
sudo apt-get update
sudo apt-get install pkg-config libpcre2-dev m4 -y
- run: opam --version
- name: bisect many not work without it
if: false #we will not run coverage in 5.2
run: |
git config --global --add safe.directory /__w/GT/GT
#git submodule update --init
- name: Install dependecies for documentation
run: |
sudo apt-get install pkg-config libpcre2-dev -y
- run: opam install . --deps-only --with-test --with-doc
- run: opam exec -- dune build @check --profile=release
- run: opam exec -- dune test --profile=release
- name: Installing using Opam
run: |
opam exec -- dune build @install
opam exec -- dune install
- name: List files
run: opam show --list-files GT