-
Notifications
You must be signed in to change notification settings - Fork 10
87 lines (82 loc) · 2.65 KB
/
macos_debug.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
# Copyright (c) 2020-2022 ETH Zurich
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
name: macOS CI (Debug)
on:
merge_group:
pull_request:
push:
branches:
# Development and release branches
- main
- release**
jobs:
build_and_test:
name: github/macos/debug
if: ${{ github.event_name == 'merge_group' }}
runs-on: macos-15
steps:
- name: Install dependencies
run: |
# Workaround for https://github.com/actions/setup-python/issues/577
rm /usr/local/bin/2to3*
rm /usr/local/bin/idle3*
rm /usr/local/bin/pydoc3*
rm /usr/local/bin/python3*
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
brew pin swiftlint xcbeautify
brew upgrade
brew update
brew install boost cmake fmt hwloc ninja spdlog
- uses: actions/checkout@v4
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: ccache-macos-debug
- name: Configure
shell: bash
run: |
cmake \
-H. \
-Bbuild \
-GNinja \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_BUILD_TYPE=Debug \
-DPIKA_WITH_FULL_RPATH=ON \
-DPIKA_WITH_EXAMPLES=ON \
-DPIKA_WITH_TESTS=ON \
-DPIKA_WITH_TESTS_HEADERS=OFF \
-DPIKA_WITH_PARALLEL_TESTS_BIND_NONE=ON \
-DPIKA_WITH_TESTS_MAX_THREADS=$(sysctl -n hw.logicalcpu) \
-DPIKA_WITH_MALLOC=system \
-DPIKA_WITH_CHECK_MODULE_DEPENDENCIES=ON \
-DPIKA_WITH_COMPILER_WARNINGS=ON \
-DPIKA_WITH_COMPILER_WARNINGS_AS_ERRORS=On
- name: Build pika
shell: bash
run: |
cmake --build build --target all
cmake --build build --target examples
cmake --build build --target tests
- name: Test
shell: bash
run: |
cd build
ctest \
-j3 \
--output-on-failure \
--timeout 120 \
--exclude-regex \
"tests.unit.modules.execution.standalone_thread_pool_executor|\
tests.unit.modules.executors.std_thread_scheduler|\
tests.unit.modules.resource_partitioner.used_pus"
- name: Install
shell: bash
run: |
sudo cmake --build build --target install
- name: Hello
shell: bash
run: |
hello_world