-
Notifications
You must be signed in to change notification settings - Fork 41
87 lines (74 loc) · 2.64 KB
/
blank.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Main workflow
on:
pull_request:
push:
branches:
- "1.30"
- "1.40" # for future
- "1.50"
- "more-dune"
permissions: read-all
env:
OPAMCONFIRMLEVEL: unsafe-yes
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
# intel macos
- macos-13
ocaml-compiler:
- 4.14.2
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: gcc --version
- name: Prepare to install cross-compiler (Ubuntu specific)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo dpkg --add-architecture i386
sudo apt update -y
- run: opam pin add Lama.dev . --no-action
- run: opam depext Lama.dev --yes --with-test
- run: opam install . --deps-only --with-test
- run: eval $(opam env)
- run: rm -fr runtime32
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-13' }}
- run: opam exec -- dune b src runtime runtime32 stdlib tutorial
if: ${{ matrix.os != 'macos-latest' && matrix.os != 'macos-13'}}
- run: opam exec -- dune b src runtime stdlib tutorial
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-13' }}
- run: opam exec -- dune b @install --profile=release
- run: opam exec -- dune install --profile=release
- run: opam exec -- dune test stdlib/regression
- run: opam exec -- dune test regression_long
- run: opam exec -- dune test regression
- run: opam exec -- make regression-all
# fails on mac
# - run: opam exec -- dune b
# - run: opam exec -- dune install --profile=release
# - run: opam exec -- dune test stdlib/regression
# - run: opam exec -- dune test regression
# - run: opam exec -- dune test regression_long
# works
# - run: rm -fr runtime32
# if: ${{ matrix.os == 'macos-latest' }}
# - run: opam exec -- dune b src runtime stdlib tutorial
# if: ${{ matrix.os == 'macos-latest' }}
# - run: opam exec -- make install
# if: ${{ matrix.os != 'macos-latest' }}
# - run: opam exec -- make regression-all
# - run: opam exec -- dune test stdlib/regression -j1
# - run: opam exec -- dune b
# - run: opam exec -- dune b @install
# - run: opam exec -- dune install
# - run: opam exec -- make regression
# - run: opam exec -- dune test regression