aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 566879d..5150697 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -29,11 +29,15 @@ jobs:
run: |
cmake $GITHUB_WORKSPACE -B "build" \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
- -DBUILD_CLI=ON -DBUILD_QT=ON
+ -DBUILD_CLI=ON -DBUILD_QT=ON \
+ -DENABLE_TESTS=ON
- name: Build
run: cmake --build build
+ - name: Test
+ run: ctest --test-dir build
+
build-windows:
runs-on: ubuntu-latest
@@ -55,13 +59,18 @@ jobs:
PATH=/usr/lib/mxe/usr/bin:$PATH \
i686-w64-mingw32.static-cmake $GITHUB_WORKSPACE -B "build" \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE" \
- -DBUILD_CLI=ON -DBUILD_QT=ON
+ -DBUILD_CLI=ON -DBUILD_QT=ON \
+ -DENABLE_TESTS=ON
- name: Build
run: |
PATH=/usr/lib/mxe/usr/bin:$PATH \
i686-w64-mingw32.static-cmake --build build
+ - name: Test
+ run: |
+ ctest --test-dir build
+
- name: Upload Binaries
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2