⬆️ Bump libs/fiction from 0d80fbe
to 176d3d0
#380
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS CI | |
on: | |
push: | |
branches: [ 'main' ] | |
paths: | |
- '**/*.hpp' | |
- '**/*.cpp' | |
- '**/*.cmake' | |
- '**/CMakeLists.txt' | |
- 'libs/**' | |
- '.github/workflows/macos.yml' | |
pull_request: | |
branches: [ 'main' ] | |
paths: | |
- '**/*.hpp' | |
- '**/*.cpp' | |
- '**/*.cmake' | |
- '**/CMakeLists.txt' | |
- 'libs/**' | |
- '.github/workflows/macos.yml' | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ macos-13, macos-14 ] | |
compiler: [ g++-12, g++-13, g++-14, clang++ ] | |
include: | |
- os: macos-13 | |
architecture: x64 | |
- os: macos-14 | |
architecture: arm64 | |
- compiler: clang++ | |
ccompiler: clang | |
- compiler: g++-12 | |
ccompiler: gcc-12 | |
- compiler: g++-13 | |
ccompiler: gcc-13 | |
- compiler: g++-14 | |
ccompiler: gcc-14 | |
exclude: | |
- os: macos-14 | |
compiler: g++-12 | |
- os: macos-14 | |
compiler: g++-13 | |
- os: macos-14 | |
compiler: g++-14 | |
name: ${{matrix.os}} with ${{matrix.compiler}} (${{matrix.build_type}} mode) | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13.x' | |
# Remove existing 2to3 binary | |
- name: Remove existing 2to3 binary | |
run: sudo rm /usr/local/bin/2to3 || true | |
# Install Boost using Homebrew | |
- name: Install Boost | |
run: brew install boost | |
- if: matrix.os == 'macos-13' | |
name: Setup XCode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "^14.2" | |
- name: Setup ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
key: '${{matrix.os}}-${{matrix.compiler}}-${{matrix.build_type}}' | |
variant: ccache | |
save: true | |
max-size: 10G | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
working-directory: ${{github.workspace}}/build | |
run: > | |
cmake ${{github.workspace}} | |
-DCMAKE_CXX_COMPILER=${{matrix.compiler}} | |
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} | |
-DFICTION_ENABLE_UNITY_BUILD=ON | |
-DFICTION_ENABLE_PCH=ON | |
-DFICTION_CLI=ON | |
-DFICTION_TEST=ON | |
-DFICTION_BENCHMARK=OFF | |
-DFICTION_EXPERIMENTS=ON | |
-DFICTION_Z3=OFF | |
-DFICTION_PROGRESS_BARS=OFF | |
-DFICTION_WARNINGS_AS_ERRORS=OFF | |
-DMOCKTURTLE_EXAMPLES=OFF | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: cmake --build . -j3 # all macOS runners provide at least 3 cores | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{matrix.build_type}} --verbose |