-
Notifications
You must be signed in to change notification settings - Fork 845
62 lines (50 loc) · 2.35 KB
/
Copy pathcmake_macos.yml
File metadata and controls
62 lines (50 loc) · 2.35 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
name: cmake macOS
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-latest is Apple Silicon (arm64) and builds with AppleClang +
# libc++, i.e. the toolchain that exercises Apple-specific standard
# library behavior (e.g. the missing floating-point std::from_chars).
os: [macos-latest]
steps:
- uses: actions/checkout@v7
# Install via Homebrew rather than turtlebrowser/get-conan: on macOS runners
# that action's `pip3 install` fails with PEP 668 (externally-managed-environment).
- name: Install Conan
run: brew install conan
- name: Create default profile
run: conan profile detect
- name: Install conan dependencies
run: conan install conanfile.py -s build_type=${{env.BUILD_TYPE}} --build=missing --settings:host compiler.cppstd=17
- name: Normalize build type
shell: bash
run: echo "BUILD_TYPE_LOWERCASE=$(echo "${BUILD_TYPE}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Configure CMake
shell: bash
run: cmake --preset conan-${{ env.BUILD_TYPE_LOWERCASE }}
- name: Build
shell: bash
run: cmake --build --preset conan-${{ env.BUILD_TYPE_LOWERCASE }}
# The tests below assert tight wall-clock timing that the shared macOS
# runners cannot meet reliably (they are much slower/noisier under load).
# They are not macOS-specific logic and keep running on Linux and Windows,
# so exclude them here to keep this job deterministic without touching the
# shared tests. --repeat until-pass absorbs residual flakiness in the rest.
- name: run test (macOS)
run: |
EXCLUDE='SimpleParallelTest.ConditionsTrue|ComplexParallelTest.ConditionRightFalseAction1Done|Parallel.PauseWithRetry|Parallel.Issue819_SequenceVsReactiveSequence|SequenceTripleActionTest.TripleAction|SimpleSequenceWithMemoryTest.ConditionTrue|SwitchTest.CaseSwitchToDefault|CoroTest.do_action_timeout|CoroTest.sequence_child|DeadlineTest.DeadlineTriggeredTest|Decorator.DelayWithXML'
ctest --test-dir build/${{env.BUILD_TYPE}} --output-on-failure --repeat until-pass:3 -E "$EXCLUDE"