diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/frozen.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/frozen.yml b/.github/workflows/frozen.yml new file mode 100644 index 0000000..0dcf504 --- /dev/null +++ b/.github/workflows/frozen.yml @@ -0,0 +1,43 @@ +name: CI + +on: [push] + +jobs: + build_frozen: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - windows-latest + - macOS-latest + cmake_args: + - "" + cxxstandard: + - 14 + - 17 + - 2a + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + + - name: Prepare + run: cmake -E make_directory build + + - name: Configure + working-directory: build + env: + CXXFLAGS: ${{matrix.os == 'windows-latest' && '/std:' || '-std='}}c++${{matrix.cxxstandard}} + run: cmake -DCMAKE_BUILD_TYPE=DEBUG "-Dfrozen.coverage=ON" -DCMAKE_VERBOSE_MAKEFILE=ON .. + + - name: Build + working-directory: build + run: cmake --build . + + - name: Test + if: startsWith(matrix.os, 'windows') == false + working-directory: build + run: cmake --build . --target test |