-
Notifications
You must be signed in to change notification settings - Fork 12
77 lines (65 loc) · 1.99 KB
/
macos-x64.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
name: macos-x64
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
name: ${{matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- {
name: "x64-macos10.15-gcc release",
arch: x64,
os: macos-10.15,
cc: gcc,
build_type: Release
}
- {
name: "x64-macos10.15-clang release",
arch: x64,
os: macos-10.15,
cc: clang,
build_type: Release
}
steps:
- uses: actions/checkout@v2
# static library
- name: configure-static
env:
CC: ${{matrix.config.cc}}
run: |
mkdir build-static
cd build-static
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DBUILD_STATIC=ON -DBUILD_SHARED=OFF -DUSE_ASAN=ON
- name: build-static
run: cd build-static && make -j VERBOSE=1
- name: test-static
run: cd build-static && make test
# shared library
- name: configure-shared
env:
CC: ${{matrix.config.cc}}
run: |
mkdir build-shared
cd build-shared
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DBUILD_STATIC=OFF -DBUILD_SHARED=ON -DUSE_ASAN=ON
- name: build-shared
run: cd build-shared && make -j VERBOSE=1
- name: test-shared
run: cd build-shared && make test
# shared library no asm
- name: configure-shared-no-asm
env:
CC: ${{matrix.config.cc}}
run: |
mkdir build-shared-no-asm
cd build-shared-no-asm
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DBUILD_STATIC=OFF -DBUILD_SHARED=ON -DUSE_ASAN=ON -DUSE_ASM=OFF
- name: build-shared-no-asm
run: cd build-shared-no-asm && make -j VERBOSE=1
- name: test-shared-no-asm
run: cd build-shared-no-asm && make test