nameof_module/.github/workflows/macos.yml

38 lines
969 B
YAML
Raw Permalink Normal View History

2020-11-15 20:54:48 +00:00
name: macos
on: [push, pull_request]
2023-05-27 10:07:42 +00:00
permissions: read-all
2020-11-15 20:54:48 +00:00
jobs:
build:
2023-05-27 10:07:42 +00:00
runs-on: ${{ matrix.config.os }}
2020-11-15 20:54:48 +00:00
strategy:
fail-fast: false
matrix:
config:
2024-10-14 12:38:45 +00:00
- { os: macos-13 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-13-Readme.md#xcode
- { os: macos-14 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-14-Readme.md#xcode
2020-11-15 20:54:48 +00:00
2023-05-27 10:07:42 +00:00
name: "${{ matrix.config.os }}"
2020-11-15 20:54:48 +00:00
steps:
2024-01-31 14:26:46 +00:00
- uses: actions/checkout@v4
2020-11-15 20:54:48 +00:00
2022-08-12 17:38:40 +00:00
- name: Build Release
run: |
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
2023-05-27 10:07:42 +00:00
cmake --build . -j 4 --config Release
2022-08-12 17:38:40 +00:00
ctest --output-on-failure -C Release
2020-11-15 20:54:48 +00:00
2022-08-12 17:38:40 +00:00
- name: Build Debug
run: |
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
2023-05-27 10:07:42 +00:00
cmake --build . -j 4 --config Debug
2022-08-12 17:38:40 +00:00
ctest --output-on-failure -C Debug