Cayley/more doc tests 4 #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##====================================================================================================================== | |
## Kyosu - Complex Without Complexes | |
## Copyright : KYOSU Contributors & Maintainers | |
## SPDX-License-Identifier: BSL-1.0 | |
##====================================================================================================================== | |
name: KYOSU Unit Testing | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: kyosu-unit-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
linux: | |
runs-on: [self-hosted] | |
strategy: | |
fail-fast: false | |
matrix: | |
cfg: | |
- { compiler: g++-12 , opts: "-O0 -DEVE_NO_FORCEINLINE" } | |
- { compiler: g++-12 , opts: "-O3 -DNDEBUG" } | |
- { compiler: clang++ , opts: "-O0 -DEVE_NO_FORCEINLINE" } | |
- { compiler: clang++ , opts: "-O3 -DNDEBUG" } | |
- { compiler: g++-12 , opts: "-O0 -DEVE_NO_FORCEINLINE -mavx2" } | |
- { compiler: g++-12 , opts: "-O3 -DNDEBUG -mavx2" } | |
- { compiler: clang++ , opts: "-O0 -DEVE_NO_FORCEINLINE -mavx2" } | |
- { compiler: clang++ , opts: "-O3 -DNDEBUG -mavx2" } | |
steps: | |
- name: Fetch current branch | |
uses: actions/checkout@v3 | |
- name: Running CMake for ${{ matrix.cfg.compiler }} with ${{ matrix.cfg.opts }} | |
run: | | |
mkdir build && cd build | |
cmake .. -G Ninja -DCMAKE_CXX_COMPILER=${{ matrix.cfg.compiler }} -DCMAKE_CXX_FLAGS="${{ matrix.cfg.opts }}" | |
- name: Running Unit Tests | |
run: cd build && ninja kyosu-test -j 5 && ctest --output-on-failure -j 5 | |
macosx: | |
runs-on: [macos-12] | |
strategy: | |
fail-fast: false | |
matrix: | |
cfg: | |
- { compiler: g++-12 , opts: "-O0 -DEVE_NO_FORCEINLINE", linker: } | |
# - { compiler: g++-12 , opts: "-O3 -DNDEBUG" , linker: } | |
# - { compiler: clang++ , opts: "-O0" , linker: } | |
# - { compiler: clang++ , opts: "-O3 -flto -DNDEBUG" , linker: } | |
# - { compiler: clang++ , opts: "-O3 -flto -DNDEBUG -stdlib=libc++" , linker: -stdlib=libc++ } | |
# - { compiler: clang++ , opts: "-O0 -stdlib=libc++" , linker: -stdlib=libc++ } | |
steps: | |
- name: Fetch current branch | |
uses: actions/checkout@v3 | |
- name: Running CMake for ${{ matrix.cfg.compiler }} with ${{ matrix.cfg.opts }} | |
run: | | |
mkdir build && cd build | |
cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.cfg.compiler }} -DCMAKE_CXX_FLAGS="${{ matrix.cfg.opts }}" -DCMAKE_EXE_LINKER_FLAGS=${{ matrix.cfg.linker }} | |
- name: Running Unit Tests | |
run: cd build && make kyosu-test -j 2 && ctest --output-on-failure -j 2 |