update ci
This commit is contained in:
parent
31ac2b3273
commit
8a6813f242
3 changed files with 25 additions and 20 deletions
6
.github/workflows/macos.yml
vendored
6
.github/workflows/macos.yml
vendored
|
@ -2,6 +2,8 @@ name: macos
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
@ -22,7 +24,7 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
|
|
||||||
- name: Build Debug
|
- name: Build Debug
|
||||||
|
@ -31,5 +33,5 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
6
.github/workflows/ubuntu.yml
vendored
6
.github/workflows/ubuntu.yml
vendored
|
@ -2,6 +2,8 @@ name: ubuntu
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu:
|
ubuntu:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
@ -56,7 +58,7 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
|
|
||||||
- name: Build Debug
|
- name: Build Debug
|
||||||
|
@ -65,5 +67,5 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
|
@ -2,6 +2,8 @@ name: windows
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
@ -23,9 +25,9 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -A Win32
|
cmake .. -A Win32
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Build x64
|
- name: Build x64
|
||||||
|
@ -35,8 +37,7 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -A x64
|
cmake .. -A x64
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue