Skip to content

Commit

Permalink
Enable CI tests
Browse files Browse the repository at this point in the history
Since 'Debug' builds were removed to
reduce matrix size tests end up being
disabled as well
  • Loading branch information
dantti committed Dec 19, 2023
1 parent 4fa7e7b commit 79f554e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
fail-fast: false
matrix:
os:
- ubuntu-latest
Expand Down Expand Up @@ -61,28 +61,28 @@ jobs:
cmake -S . -B ./build -G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DGAMMARAY_CLIENT_ONLY_BUILD=${{ matrix.client_only == 'client_only' }}
-DGAMMARAY_BUILD_DOCS=${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
-DGAMMARAY_BUILD_DOCS=${{ runner.os == 'Linux' }}
-DGAMMARAY_INSTALL_QT_LAYOUT=ON
-DGAMMARAY_MULTI_BUILD=OFF
- name: Build Project
run: cmake --build ./build

- name: Install dependencies on Ubuntu
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt update -qq
sudo apt install -y gdb
- name: Enable gdb attaching
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' }}
if: ${{ runner.os == 'Linux' }}
run: echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

# Exclude
# connectiontest-style-filter is flaky
# quickmaterialtest|quicktexturetest fails because of QT_QUICK_BACKEND=software
- name: Run tests on Linux Qt5 (offscreen)
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' && matrix.config.qt_major == 5 }}
if: ${{ runner.os == 'Linux' && matrix.config.qt_major == 5 }}
run: >
ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
--exclude-regex "quickmaterialtest|quicktexturetest|connectiontest-style-filter"
Expand All @@ -96,7 +96,7 @@ jobs:
# quickinspectortest|quickinspectortest2 fails at CI, local with 6.2.4 passes
# modelinspectortest fails in Qt6/CI passes locally
- name: Run tests on Linux Qt6 (offscreen)
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Linux' && matrix.config.qt_major == 6 }}
if: ${{ runner.os == 'Linux' && matrix.config.qt_major == 6 }}
run: >
ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
--exclude-regex "quickmaterialtest|quicktexturetest|connectiontest-style-filter|bindinginspectortest|quickinspectortest|quickinspectortest2|modelinspectortest"
Expand All @@ -115,7 +115,7 @@ jobs:
#26 - launchertest (Failed)
#37 - quickinspectortest2 (Failed)
- name: Run tests Qt5 on macOS
if: ${{ matrix.build_type == 'Debug' && runner.os == 'macOS' && matrix.config.qt_major == 5 }}
if: ${{ runner.os == 'macOS' && matrix.config.qt_major == 5 }}
run: >
ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
--exclude-regex "connectiontest-*|probeabidetectortest|launchertest|quickinspectortest2"
Expand All @@ -134,7 +134,7 @@ jobs:
# quickinspectortest2
# bindinginspectortest fails in client_and_ui
- name: Run tests Qt6 on macOS
if: ${{ matrix.build_type == 'Debug' && runner.os == 'macOS' && matrix.config.qt_major == 6 }}
if: ${{ runner.os == 'macOS' && matrix.config.qt_major == 6 }}
run: >
ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
--exclude-regex
Expand All @@ -144,7 +144,7 @@ jobs:
# quicktexturetest
# bindinginspectortest
- name: Qt5 Run tests on Windows
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Windows' && matrix.config.qt_major == 5 }}
if: ${{ runner.os == 'Windows' && matrix.config.qt_major == 5 }}
run: >
ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
--exclude-regex "quicktexturetest|bindinginspectortest|connectiontest-windll|connectiontest-windll-filter"
Expand All @@ -154,13 +154,13 @@ jobs:
# bindinginspectortest
# modelinspectortest fails in Qt6/CI passes locally
- name: Qt6 Run tests on Windows
if: ${{ matrix.build_type == 'Debug' && runner.os == 'Windows' && matrix.config.qt_major == 6 }}
if: ${{ runner.os == 'Windows' && matrix.config.qt_major == 6 }}
run: >
ctest --test-dir ./build -C ${{ matrix.build_type }} --output-on-failure
--exclude-regex "quicktexturetest|launchertest|bindinginspectortest|modelinspectortest"
- name: Read tests log when it fails
uses: andstor/file-reader-action@v1
if: ${{ failure() && matrix.build_type == 'Debug' }}
if: ${{ failure() }}
with:
path: "./build/Testing/Temporary/LastTest.log"

0 comments on commit 79f554e

Please sign in to comment.