1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-18 00:54:19 +00:00

update ci (#205)

This commit is contained in:
Daniil Goncharov 2022-08-10 14:53:38 +04:00 committed by GitHub
parent e0f8f14724
commit f4ebb4f185
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 89 additions and 29 deletions

View file

@ -9,19 +9,27 @@ jobs:
fail-fast: false
matrix:
config:
- { os: macos-10.15 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
- { os: macos-11.0 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11.0-Readme.md#xcode
build: [Debug, Release]
- { os: macos-11 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
- { os: macos-12 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode
name: "${{matrix.config.os}}:${{matrix.build}}"
name: "${{matrix.config.os}}"
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build}}
- 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
- name: Build
run: cmake --build . --config ${{matrix.build}}
- name: Tests
run: ctest --output-on-failure -C ${{matrix.build}}
- 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