aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-07-02 17:50:08 -0300
committerGitHub <noreply@github.com>2022-07-02 17:50:08 -0300
commitfb75c23f4e63077e12ca6821f66c1a55158e5d12 (patch)
tree5a3c5b6078f6acc43cfb354e1c235e80a4c21d7f /.github
parent7f22994f6889706ba667baca32968787fe86ad44 (diff)
parent3d0740f80e8d2d1bd0f83c914b53d074d73e7c97 (diff)
downloadPrismLauncher-fb75c23f4e63077e12ca6821f66c1a55158e5d12.tar.gz
PrismLauncher-fb75c23f4e63077e12ca6821f66c1a55158e5d12.tar.bz2
PrismLauncher-fb75c23f4e63077e12ca6821f66c1a55158e5d12.zip
Merge pull request #784 from Scrumplex/refactor-cmake
Refactor tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml20
1 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d8fc1ff2..4e52af4e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -61,6 +61,7 @@ jobs:
pacboy: >-
toolchain:p
cmake:p
+ extra-cmake-modules:p
ninja:p
qt5:p
ccache:p
@@ -107,7 +108,7 @@ jobs:
if: runner.os == 'macOS'
run: |
brew update
- brew install qt@5 ninja
+ brew install qt@5 ninja extra-cmake-modules
- name: Update Qt (AppImage)
if: runner.os == 'Linux' && matrix.appimage == true
@@ -121,7 +122,7 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get -y update
- sudo apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5 ninja-build qt5-image-formats-plugins
+ sudo apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5 ninja-build qt5-image-formats-plugins extra-cmake-modules
- name: Prepare AppImage (Linux)
if: runner.os == 'Linux' && matrix.appimage == true
@@ -168,6 +169,21 @@ jobs:
cmake --build ${{ env.BUILD_DIR }}
##
+ # TEST
+ ##
+
+ - name: Test
+ if: runner.os != 'Windows'
+ run: |
+ ctest --test-dir build --output-on-failure
+
+ - name: Test (Windows)
+ if: runner.os == 'Windows'
+ shell: msys2 {0}
+ run: |
+ ctest --test-dir build --output-on-failure
+
+ ##
# PACKAGE BUILDS
##