forked from Z3Prover/z3
-
Notifications
You must be signed in to change notification settings - Fork 6
97 lines (81 loc) · 2.14 KB
/
build.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
88
89
90
91
92
93
94
95
96
97
name: Various platforms (build-&-test)
on:
push:
branches:
- master
- devel
pull_request:
branches:
- master
- devel
# allows to run the action from GitHub UI
workflow_dispatch:
jobs:
macos-build:
name: "MacOS (build-&-test)"
runs-on: macos-15
steps:
- name: Clone Mata
uses: GuillaumeFalourd/[email protected]
with:
owner: 'VeriFIT'
repository: 'mata'
branch: devel
depth: 1
- name: Install dependencies
run: |
brew update
brew install catch2
- name: Install Mata
run: |
cd mata
make release
sudo make install
- name: Check out repository code
uses: actions/checkout@v3
- name: Compile Z3-Noodler release
run: |
mkdir build
cd build
export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH:+${CPLUS_INCLUDE_PATH}:}/usr/local/include/"
cmake -DCMAKE_BUILD_TYPE="Release" ../
make -j4
- name: Test Z3-Noodler
run: |
cd build
export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH:+${CPLUS_INCLUDE_PATH}:}/usr/local/include/"
make -j4 test-noodler
./test-noodler
ubuntu-build:
name: "Ubuntu (build-&-test)"
runs-on: ubuntu-latest
steps:
- name: Clone Mata
uses: GuillaumeFalourd/[email protected]
with:
owner: 'VeriFIT'
repository: 'mata'
branch: devel
depth: 1
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install catch2
- name: Install Mata
run: |
cd mata
make release
sudo make install
- name: Check out repository code
uses: actions/checkout@v3
- name: Compile Z3-Noodler release
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE="Release" ../
make -j4
- name: Test Z3-Noodler
run: |
cd build
make -j4 test-noodler
./test-noodler