Skip to content

Enable LTO in CircleCI configuration #4737

Enable LTO in CircleCI configuration

Enable LTO in CircleCI configuration #4737

Workflow file for this run

# 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-12
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 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_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: |
cmake --build build --target install
- name: Hello
shell: bash
run: |
hello_world