-
Notifications
You must be signed in to change notification settings - Fork 2
104 lines (88 loc) · 2.98 KB
/
macos_clang.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
name: macOS Clang
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
include:
- clang_ver: '19'
build_type: 'Release'
flags: '-std=c++23 -Werror -msse2 -DTEST_LIBCXX_NEW'
path_prefix: '/usr/local'
macos_ver: '13'
# macOS-14-arm64
# - clang_ver: '12'
# build_type: 'Release'
# flags: '-std=c++20 -Werror'
# path_prefix: '/opt/homebrew'
# macos_ver: '14'
# - clang_ver: '13'
# build_type: 'Release'
# flags: '-std=c++20 -Werror'
# path_prefix: '/opt/homebrew'
# macos_ver: '14'
# - clang_ver: '14'
# build_type: 'Release'
# flags: '-std=c++20 -Werror'
# path_prefix: '/opt/homebrew'
# macos_ver: '14'
- clang_ver: '15'
build_type: 'Release'
flags: '-std=c++20 -Werror'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '16'
build_type: 'Release'
flags: '-std=c++20 -Werror'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '17'
build_type: 'Release'
flags: '-std=c++23 -Werror'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '18'
build_type: 'Release'
flags: '-std=c++23 -Werror'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '19'
build_type: 'Release'
flags: '-std=c++23 -Werror -DTEST_LIBCXX_NEW'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '19'
build_type: 'Release'
flags: '-std=c++23 -Werror -DTEST_LIBCXX_NEW -fno-rtti -DMOMO_USE_SAFE_MAP_BRACKETS -DMOMO_USE_UNORDERED_HINT_ITERATORS -DMOMO_DISABLE_TYPE_INFO'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '19'
build_type: 'Debug'
flags: '-std=c++23 -Werror -fsanitize=address,undefined -DTEST_LIBCXX_NEW'
path_prefix: '/opt/homebrew'
macos_ver: '14'
- clang_ver: '19'
build_type: 'Debug'
flags: '-std=c++23 -Werror -fsanitize=address,undefined -DTEST_LIBCXX_NEW -fno-rtti -DMOMO_USE_SAFE_MAP_BRACKETS -DMOMO_USE_UNORDERED_HINT_ITERATORS -DMOMO_DISABLE_TYPE_INFO'
path_prefix: '/opt/homebrew'
macos_ver: '14'
runs-on: macos-${{ matrix.macos_ver }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Ninja
run: brew install ninja
- name: Install Clang
run: brew install llvm@${{ matrix.clang_ver }}
- name: Build
env:
CXX: ${{ matrix.path_prefix }}/opt/llvm@${{ matrix.clang_ver }}/bin/clang++
CXXFLAGS: ${{ matrix.flags }}
run: |
cd test
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build . -v
- name: Test
run: test/build/momo_test