forked from fmlab-iis/AutoQ
-
Notifications
You must be signed in to change notification settings - Fork 0
203 lines (189 loc) · 7.67 KB
/
c-cpp.yml
File metadata and controls
203 lines (189 loc) · 7.67 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
name: C/C++ CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build-debug-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install libboost-filesystem-dev libboost-test-dev libboost-regex-dev
- run: make debug
- run: cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.* build/unit_tests/
- run: cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.* build/unit_tests/
- run: cp libz3.so.* build/unit_tests/
- run: cp libantlr4-runtime.so.* build/unit_tests/
- uses: actions/upload-artifact@v4.3.5
with:
name: AutoQ-debug-ubuntu
path: |
Makefile
build/
unit_tests/
benchmarks/all/
test-debug-ubuntu:
needs: build-debug-ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: AutoQ-debug-ubuntu
# - run: pwd
# - run: ls -a
- run: cd build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test
build-release-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install libboost-filesystem-dev libboost-test-dev libboost-regex-dev
- run: make release
- run: cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.* build/unit_tests/
- run: cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.* build/unit_tests/
- run: cp libz3.so.* build/unit_tests/
- run: cp libantlr4-runtime.so.* build/unit_tests/
- uses: actions/upload-artifact@v4.3.5
with:
name: AutoQ-release-ubuntu
path: |
Makefile
build/
unit_tests/
benchmarks/all/
test-release-ubuntu:
needs: build-release-ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: AutoQ-release-ubuntu
# - run: pwd
# - run: ls -a
- run: cd build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test
build-debug-wsl:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/setup-wsl2@main
- uses: actions/checkout@v4
- run: |
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y libboost-filesystem-dev libboost-test-dev libboost-regex-dev git make gcc g++ cmake
make debug
cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.* build/unit_tests/
cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.* build/unit_tests/
cp libz3.so.* build/unit_tests/
cp libantlr4-runtime.so.* build/unit_tests/
shell: wsl-run {0} # add this to run the commands inside linux
- run: |
wsl -d Ubuntu -e bash -c "tar -czf autoq-debug-wsl.tar.gz Makefile build/ unit_tests/ benchmarks/all/"
- uses: actions/upload-artifact@v4.3.5
with:
name: AutoQ-debug-wsl
path: autoq-debug-wsl.tar.gz
test-debug-wsl:
needs: build-debug-wsl
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/setup-wsl2@main
- uses: actions/download-artifact@v4
with:
name: AutoQ-debug-wsl
- run: |
tar -xzf autoq-debug-wsl.tar.gz
cd build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test
shell: wsl-run {0} # add this to run the commands inside linux
build-release-wsl:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/setup-wsl2@main
- uses: actions/checkout@v4
- run: |
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y libboost-filesystem-dev libboost-test-dev libboost-regex-dev git make gcc g++ cmake
make release
cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.* build/unit_tests/
cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.* build/unit_tests/
cp libz3.so.* build/unit_tests/
cp libantlr4-runtime.so.* build/unit_tests/
shell: wsl-run {0} # add this to run the commands inside linux
- run: |
wsl -d Ubuntu -e bash -c "tar -czf autoq-release-wsl.tar.gz Makefile build/ unit_tests/ benchmarks/all/"
- uses: actions/upload-artifact@v4.3.5
with:
name: AutoQ-release-wsl
path: autoq-release-wsl.tar.gz
test-release-wsl:
needs: build-release-wsl
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/setup-wsl2@main
- uses: actions/download-artifact@v4
with:
name: AutoQ-release-wsl
- run: |
tar -xzf autoq-release-wsl.tar.gz
cd build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test
shell: wsl-run {0} # add this to run the commands inside linux
build-debug-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: brew install make boost
- run: make debug
- run: cp /opt/homebrew/lib/libboost_unit_test_framework.dylib build/unit_tests/
- run: cp /opt/homebrew/lib/libboost_filesystem.dylib build/unit_tests/
# - run: cp /opt/homebrew/lib/libboost_system.dylib build/unit_tests/
- run: cp /opt/homebrew/lib/libboost_regex.dylib build/unit_tests/
- run: cp /opt/homebrew/lib/libboost_atomic.dylib build/unit_tests/
# # - run: cp /home/runner/work/AutoQ/AutoQ/AutoQ/libz3.so.* /Users/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
- uses: actions/upload-artifact@v4.3.5
with:
name: AutoQ-debug-macos
path: |
Makefile
build/
unit_tests/
benchmarks/all/
test-debug-macos:
needs: build-debug-macos
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v4
with:
name: AutoQ-debug-macos
# - run: pwd
# - run: ls -a
- run: cd build/unit_tests/ && chmod +x ./explicit_tree_aut_test && DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH ./explicit_tree_aut_test
build-release-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: brew install make boost
- run: make release
- run: cp /opt/homebrew/lib/libboost_unit_test_framework.dylib build/unit_tests/
- run: cp /opt/homebrew/lib/libboost_filesystem.dylib build/unit_tests/
# - run: cp /opt/homebrew/lib/libboost_system.dylib build/unit_tests/
- run: cp /opt/homebrew/lib/libboost_regex.dylib build/unit_tests/
- run: cp /opt/homebrew/lib/libboost_atomic.dylib build/unit_tests/
# # - run: cp /home/runner/work/AutoQ/AutoQ/AutoQ/libz3.so.* /Users/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
- uses: actions/upload-artifact@v4.3.5
with:
name: AutoQ-release-macos
path: |
Makefile
build/
unit_tests/
benchmarks/all/
test-release-macos:
needs: build-release-macos
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v4
with:
name: AutoQ-release-macos
# - run: pwd
# - run: ls -a
- run: cd build/unit_tests/ && chmod +x ./explicit_tree_aut_test && DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH ./explicit_tree_aut_test