diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14f82e2..7f666cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,20 +2,13 @@ name: CPP Semver CI on: [push, pull_request] jobs: - unix: - runs-on: ${{matrix.os}} + macos: + runs-on: macos-latest strategy: matrix: build: [Debug, Release] - os: [macos-latest, ubuntu-latest] compiler: [g++, clang++] std_version: [17, 20] - exclude: - - os: ubuntu-latest - compiler: clang++ - include: - - os: ubuntu-latest - compiler: clang++-15 name: ${{matrix.os}} ${{matrix.compiler}} ${{matrix.build}} std:${{matrix.std_version}} env: CXX: ${{ matrix.compiler }} @@ -30,6 +23,27 @@ jobs: working-directory: build run: ctest -C ${{matrix.build}} -j4 + linux: + runs-on: ubuntu-latest + strategy: + matrix: + build: [ Debug, Release ] + compiler: [ g++, clang++-15 ] + std_version: [ 17, 20 ] + name: ${{matrix.os}} ${{matrix.compiler}} ${{matrix.build}} std:${{matrix.std_version}} + env: + CXX: ${{ matrix.compiler }} + CTEST_OUTPUT_ON_FAILURE: 1 + steps: + - uses: actions/checkout@v3 + - name: cmake + run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build}} -DCMAKE_CXX_STANDARD=${{matrix.std_version}} + - name: build + run: cmake --build build --config ${{matrix.build}} --parallel 4 + - name: test + working-directory: build + run: ctest -C ${{matrix.build}} -j4 + windows: runs-on: ${{matrix.os}} strategy: