-
Notifications
You must be signed in to change notification settings - Fork 21
74 lines (74 loc) · 2.62 KB
/
main.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
name: Build and Package TLA Proof Manager
on:
push:
schedule:
- cron: '42 5 5 * *'
jobs:
test:
name: Build TLAPS installer and test it
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [
macos-latest,
ubuntu-latest]
ocaml-compiler: [
'0',
'1',
'2',
]
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: actions/checkout@v2
- name: Get OCaml version
run: |
INDEX=${{ matrix.ocaml-compiler }}
OCAML_VERSION=\
`python .github/workflows/ocaml_versions.py $INDEX`
echo "OCAML_VERSION=$OCAML_VERSION" \
>> $GITHUB_ENV
echo "OCAML_VERSION = $OCAML_VERSION"
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ env.OCAML_VERSION }}
- name: Build installer of TLAPS
run: |
eval $(opam env)
./configure
cd tools/installer
./tlaps-release.sh
- name: Define TLAPS-related env vars
run: |
python .github/workflows/setup_shell_env.py \
>> $GITHUB_ENV
- name: Run installer of TLAPS
run: |
./tools/installer/\
${{ env.INSTALLER }} -d .
- name: Install dependencies for testing
run: |
opam install kaputt
- name: Run a subset of `tlapm` tests
run: |
eval $(opam env)
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH make test
- name: Run all `tlapm` tests
if: >-
matrix.operating-system == 'ubuntu-latest' &&
matrix.ocaml-compiler == '2'
run: |
ls -lah
eval $(opam env)
ocaml --version
make
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH which tlapm
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH which zenon
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH tlapm --version
PATH=$(pwd)/bin:$(pwd)/lib/tlaps/bin:$PATH make testall
- name: Print Test Results
if: matrix.operating-system == 'ubuntu-latest'
run: |
cat test/tests.log