-
Notifications
You must be signed in to change notification settings - Fork 20
64 lines (61 loc) · 1.5 KB
/
ci.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: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
shell: bash
jobs:
otps:
name: OTP ${{ matrix.otp }}
runs-on: ubuntu-latest
container: aggelgian/erlang:${{ matrix.otp }}
strategy:
matrix:
otp:
- "22.3"
- "21.3"
- "21.0"
- "20.3"
env:
GPB_ALLOW_NON_CONFORMING_VSN_FORMAT: 1
Z3_RELEASE: "z3-4.8.8/z3-4.8.8-x64-ubuntu-16.04"
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache .plt directory
uses: actions/cache@v3
with:
path: .plt
key: ${{ runner.os }}-otp-${{ matrix.otp }}
- name: Build submodules
run: |
bash -c "echo 4.19.5 > lib/gpb/gpb.vsn"
git submodule foreach make
- name: Install Z3
run: bash -x fetch_z3.sh
- name: Install Python modules
run: |
apt-get update
apt-get install -y python3-pip
python3 -m pip install --user -r requirements.txt
- name: Install protobuf library
run: bash -x fetch_protoc.sh
- name: Build CutEr
run: |
autoconf
./configure --with-protoc=$PWD/lib/protoc-3.20.2/bin/protoc
make depend
make -j 2
- name: Run Dialyzer
run: make dialyzer
- name: Run unit tests
run: make utest
- name: Run functional tests
run: make ftest