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:
parent
e0f8f14724
commit
f4ebb4f185
4 changed files with 89 additions and 29 deletions
30
.github/workflows/macos.yml
vendored
30
.github/workflows/macos.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue