Skip to content

Bump codecov/codecov-action from 4 to 5 #284

Bump codecov/codecov-action from 4 to 5

Bump codecov/codecov-action from 4 to 5 #284

Workflow file for this run

name: macOS
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.config.image }}
strategy:
matrix:
config: [
{ image: "macos-13", cxx: 20, arch: "x64", werror: "ON" },
{ image: "macos-13", cxx: 23, arch: "x64", werror: "OFF" }, # -Wpre-c++2b-compat causes issues
{ image: "macos-14", cxx: 20, arch: "ARM64", werror: "ON" },
{ image: "macos-14", cxx: 23, arch: "ARM64", werror: "OFF" }, # -Wpre-c++2b-compat causes issues
]
fail-fast: false
name: Xcode ${{ matrix.config.arch }} (C++${{ matrix.config.cxx }})
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install ninja
run: brew install ninja
- name: CMake configure
run: >
cmake -S .
-B build
-G "Ninja Multi-Config"
-D CMAKE_CXX_STANDARD=${{ matrix.config.cxx }}
-D TETL_BUILD_WERROR=${{ matrix.config.werror }}
- name: CMake build -- Debug
run: cmake --build build --config Debug
- name: Run tests -- Debug
run: ctest --test-dir build -C Debug --output-on-failure
- name: CMake build -- Release
run: cmake --build build --config Release
- name: Run tests -- Release
run: ctest --test-dir build -C Release --output-on-failure