File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ release :
5+ types : [published]
6+ push :
7+ branches : [ "main" ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ test-linux :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ # --------------------------------------------collect--------------------------------------------
17+ - uses : actions/checkout@v3
18+
19+ - name : Collect dependencies
20+ run : |
21+ sudo apt-get update
22+ sudo apt-get install gcc cmake -y
23+
24+ # --------------------------------------------build--------------------------------------------
25+ - name : Build
26+ run : |
27+ mkdir build
28+ cd build
29+ cmake .. -DENABLE_EXTRA=ON -DENABLE_TEST=ON
30+
31+ # --------------------------------------------test--------------------------------------------
32+ - name : Test
33+ run : |
34+ ctest --verbose --output-on-failure
35+
36+
37+ test-macos :
38+
39+ runs-on : macos-latest
40+
41+ steps :
42+ # --------------------------------------------collect--------------------------------------------
43+ - uses : actions/checkout@v3
44+
45+ - name : Collect dependencies
46+ run : |
47+ brew install cmake -y
48+
49+ # --------------------------------------------build--------------------------------------------
50+ - name : Build
51+ run : |
52+ mkdir build
53+ cd build
54+ cmake .. -DENABLE_EXTRA=ON -DENABLE_TEST=ON
55+
56+ # --------------------------------------------test--------------------------------------------
57+ - name : Test
58+ run : |
59+ ctest --verbose --output-on-failure
You can’t perform that action at this time.
0 commit comments