nameof_module/.github/workflows/macos.yml

36 lines
933 B
YAML
Raw Normal View History

2020-11-15 20:54:48 +00:00
name: macos
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false
matrix:
config:
2022-08-12 17:38:40 +00:00
- { os: macos-11 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
2022-07-21 16:01:56 +00:00
- { os: macos-12 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode
2020-11-15 20:54:48 +00:00
2022-08-12 17:38:40 +00:00
name: "${{matrix.config.os}}"
2020-11-15 20:54:48 +00:00
steps:
- uses: actions/checkout@v2
2022-08-12 17:38:40 +00:00
- name: Build Release
run: |
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
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
cmake --build . --config Debug
ctest --output-on-failure -C Debug