-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (83 loc) · 2.48 KB
/
macos_gcc.yml
File metadata and controls
93 lines (83 loc) · 2.48 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
name: macOS GCC
on:
push:
branches:
- '**'
jobs:
momo-test:
strategy:
matrix:
include:
# ARM64
- gcc_ver: '15'
macos_ver: 'latest'
build_type: 'Release'
test_libcxx20: 'Off'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '-std=c++11'
path_prefix: '/opt/homebrew'
- gcc_ver: '15'
macos_ver: 'latest'
build_type: 'Release'
test_libcxx20: 'On'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '-std=c++26 -Werror'
path_prefix: '/opt/homebrew'
# - gcc_ver: '15'
# macos_ver: 'latest'
# build_type: 'Debug'
# test_libcxx20: 'On'
# no_exceptions_rtti: 'Off'
# extra_settings: 'Off'
# flags: '-std=c++26 -Werror'
# path_prefix: '/opt/homebrew'
# x64
- gcc_ver: '15'
macos_ver: '15-intel'
build_type: 'Release'
test_libcxx20: 'Off'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '-std=c++11'
path_prefix: '/usr/local'
- gcc_ver: '15'
macos_ver: '15-intel'
build_type: 'Release'
test_libcxx20: 'On'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '-std=c++26 -Werror'
path_prefix: '/usr/local'
# - gcc_ver: '15'
# macos_ver: '15-intel'
# build_type: 'Debug'
# test_libcxx20: 'On'
# no_exceptions_rtti: 'Off'
# extra_settings: 'Off'
# flags: '-std=c++26 -Werror'
# path_prefix: '/usr/local'
runs-on: macos-${{ matrix.macos_ver }}
steps:
- name: Checkout
uses: actions/checkout@v6
# - name: Install Ninja
# run: brew install ninja
- name: Install GCC
run: brew install gcc@${{ matrix.gcc_ver }}
- name: Build
env:
CXX: ${{ matrix.path_prefix }}/opt/gcc@${{ matrix.gcc_ver }}/bin/g++-${{ matrix.gcc_ver }}
CXXFLAGS: ${{ matrix.flags }}
run: |
cd test
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DMOMO_TEST_LIBCXX20=${{ matrix.test_libcxx20 }} \
-DMOMO_TEST_NO_EXCEPTIONS_RTTI=${{ matrix.no_exceptions_rtti }} \
-DMOMO_TEST_EXTRA_SETTINGS=${{ matrix.extra_settings }}
cmake --build . -v
- name: Test
run: test/build/momo_test