-
Notifications
You must be signed in to change notification settings - Fork 4
126 lines (124 loc) · 5.18 KB
/
c-cpp.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
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
name: C/C++ CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
# build-debug-ubuntu:
# runs-on: ubuntu-latest
# steps:
# - run: sudo apt-get install libboost-filesystem-dev libboost-test-dev libboost-regex-dev
# - run: git clone https://github.com/alan23273850/AutoQ.git
# - run: cd AutoQ && git checkout ${{ github.ref_name }} && mkdir build && make debug
# - run: cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.74.0 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - run: cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - run: cp /home/runner/work/AutoQ/AutoQ/AutoQ/libz3.so.4.12 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - uses: actions/[email protected]
# with:
# name: AutoQ-debug-ubuntu
# path: |
# AutoQ/Makefile
# AutoQ/build/
# AutoQ/unit_tests/
# AutoQ/benchmarks/_all/
# test-debug-ubuntu:
# needs: build-debug-ubuntu
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: AutoQ-debug-ubuntu
# path: AutoQ/
# # - run: pwd
# # - run: ls -a
# - run: cd AutoQ/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:
# - run: sudo apt-get install libboost-filesystem-dev libboost-test-dev libboost-regex-dev
# - run: git clone https://github.com/alan23273850/AutoQ.git
# - run: cd AutoQ && git checkout ${{ github.ref_name }} && mkdir build && make release
# - run: cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.74.0 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - run: cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - run: cp /home/runner/work/AutoQ/AutoQ/AutoQ/libz3.so.4.12 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - uses: actions/[email protected]
# with:
# name: AutoQ-release-ubuntu
# path: |
# AutoQ/Makefile
# AutoQ/build/
# AutoQ/unit_tests/
# AutoQ/benchmarks/_all/
# test-release-ubuntu:
# needs: build-release-ubuntu
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: AutoQ-release-ubuntu
# path: AutoQ/
# # - run: pwd
# # - run: ls -a
# - run: cd AutoQ/build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test
build-debug-macos:
runs-on: macos-latest
steps:
- run: brew install gcc make cmake boost
# - run: ls /
# - run: ls /opt/homebrew/lib/
# - run: ls /opt/homebrew/opt/
- run: git clone https://github.com/alan23273850/AutoQ.git
- run: cd AutoQ && git checkout ${{ github.ref_name }} && mkdir build && make debug
- run: cp /opt/homebrew/lib/libboost_unit_test_framework.dylib /Users/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# # - run: cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 /Users/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# # - run: cp /home/runner/work/AutoQ/AutoQ/AutoQ/libz3.so.4.12 /Users/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
- uses: actions/[email protected]
with:
name: AutoQ-debug-macos
path: |
AutoQ/Makefile
AutoQ/build/
AutoQ/unit_tests/
AutoQ/benchmarks/_all/
test-debug-macos:
needs: build-debug-macos
runs-on: macos-latest
steps:
- uses: actions/download-artifact@v4
with:
name: AutoQ-debug-macos
path: AutoQ/
# - run: pwd
# - run: ls -a
- run: cd AutoQ/build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test
# build-release-macos:
# runs-on: macos-latest
# steps:
# - run: brew install gcc make cmake boost
# - run: git clone https://github.com/alan23273850/AutoQ.git
# - run: cd AutoQ && git checkout ${{ github.ref_name }} && mkdir build && make release
# # - run: cp /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.74.0 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# # - run: cp /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# # - run: cp /home/runner/work/AutoQ/AutoQ/AutoQ/libz3.so.4.12 /home/runner/work/AutoQ/AutoQ/AutoQ/build/unit_tests/
# - uses: actions/[email protected]
# with:
# name: AutoQ-release-macos
# path: |
# AutoQ/Makefile
# AutoQ/build/
# AutoQ/unit_tests/
# AutoQ/benchmarks/_all/
# test-release-macos:
# needs: build-release-macos
# runs-on: macos-latest
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: AutoQ-release-macos
# path: AutoQ/
# # - run: pwd
# # - run: ls -a
# - run: cd AutoQ/build/unit_tests/ && chmod +x ./explicit_tree_aut_test && LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./explicit_tree_aut_test