update ci

This commit is contained in:
neargye 2023-05-27 14:07:42 +04:00
parent 31ac2b3273
commit 8a6813f242
3 changed files with 25 additions and 20 deletions

View file

@ -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

View file

@ -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

View file

@ -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