-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (49 loc) · 1.87 KB
/
test_clang_mac.yml
File metadata and controls
60 lines (49 loc) · 1.87 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
name: clang mac
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '20 3 * * *'
env:
TEST_DIR: ./tests
jobs:
all:
strategy:
fail-fast: false
matrix:
os: [macos-15-intel] # x64
# Note: No clang version variation since the macOS runners do not have versioned executables (e.g. clang++-17).
cpp_version: [c++17, c++20]
buildmode: [~ , -O3 -DNDEBUG, -O3 -DNDEBUG -ffast-math]
include:
# Also include a few variations with disabled UB tricks (not for all to limit resource consumption).
# Especially include some on arm64 where the UB tricks are not supported by tiny::optional.
- os: macos-15-intel # x64
cpp_version: c++20
buildmode: -DTINY_OPTIONAL_USE_SEPARATE_BOOL_INSTEAD_OF_UB_TRICKS
- os: macos-14 # arm64
cpp_version: c++17
buildmode: -DTINY_OPTIONAL_USE_SEPARATE_BOOL_INSTEAD_OF_UB_TRICKS
- os: macos-14 # arm64
cpp_version: c++20
buildmode: -DTINY_OPTIONAL_USE_SEPARATE_BOOL_INSTEAD_OF_UB_TRICKS
- os: macos-14 # arm64
cpp_version: c++20
buildmode: -DTINY_OPTIONAL_USE_SEPARATE_BOOL_INSTEAD_OF_UB_TRICKS -O3 -DNDEBUG
- os: macos-15 # arm64
cpp_version: c++20
buildmode: -DTINY_OPTIONAL_USE_SEPARATE_BOOL_INSTEAD_OF_UB_TRICKS
- os: macos-15 # arm64
cpp_version: c++20
buildmode: -DTINY_OPTIONAL_USE_SEPARATE_BOOL_INSTEAD_OF_UB_TRICKS -O3 -DNDEBUG
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Build and run tests
working-directory: ${{env.TEST_DIR}}
env:
CXX: clang++
ADDITIONAL_FLAGS: ${{ format('-std={0} {1}', matrix.cpp_version, matrix.buildmode) }}
run: make generic