summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 17:27:54 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-19 17:27:54 +0400
commitd9e91f73e5760fc6ee115ac2947e1ef999f6bef5 (patch)
tree4725373a9ff29b21d0a8a87b318be660bbb7fe28 /.github
parent4446ccd921d2cfbf4e9bb57ed60ba5564ea00609 (diff)
downloadkit-d9e91f73e5760fc6ee115ac2947e1ef999f6bef5.zip
Enable tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_and_test.yml39
1 files changed, 38 insertions, 1 deletions
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index 1b93305..6f29517 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -16,7 +16,7 @@ jobs:
build:
strategy:
matrix:
- os: [ windows-2019 ]
+ os: [ ubuntu-latest, macos-latest, windows-2019 ]
runs-on: ${{ matrix.os }}
@@ -81,3 +81,40 @@ jobs:
flags: ${{ runner.os }}
name: ${{ runner.os }} build
fail_ci_if_error: false
+
+ integration:
+ strategy:
+ matrix:
+ os: [ ubuntu-latest, macos-latest, windows-2019 ]
+ name: [ fetch_content, find_package ]
+
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up CMake 3.18
+ uses: jwlawson/actions-setup-cmake@v1.8
+ with:
+ cmake-version: 3.18
+
+ - name: Build
+ if: runner.os != 'Windows'
+ run: |
+ cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
+ cmake --build build --config $BUILD_TYPE
+ working-directory: ./source/test/integration/${{ matrix.name }}
+
+ - name: Build with Visual Studio
+ if: runner.os == 'Windows'
+ shell: bash
+ run: |
+ cmake -B build -S .
+ cmake --build build --config $BUILD_TYPE
+ working-directory: ./source/test/integration/${{ matrix.name }}
+
+ - name: Run
+ shell: bash
+ run: |
+ ctest -V -C $BUILD_TYPE
+ working-directory: ./source/test/integration/${{ matrix.name }}/build