Skip to content

Commit

Permalink
Enable CI on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dantti committed Nov 30, 2023
1 parent b805f06 commit e331699
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 @@ -7,10 +7,10 @@ name: CI
on:
push:
branches:
- 2.0
- master
pull_request:
branches:
- 2.0
- master

jobs:
build:
Expand All @@ -19,12 +19,9 @@ jobs:
fail-fast: true
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
- windows-2022
- windows-2019
- macos-13
- macos-12
- ubuntu-latest
- windows-latest
#- macos-latest

config:
- qt_version: "5.15"
Expand All @@ -44,6 +41,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4

- name: Fetch Git submodule
run: git submodule update --init --recursive

- name: Make sure MSVC is found when Ninja generator is in use
if: ${{ runner.os == 'Windows' }}
uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -56,17 +56,17 @@ jobs:

- name: Run tests on Linux (offscreen)
if: ${{ runner.os == 'Linux' }}
run: ctest --test-dir ./build-${{ matrix.preset.name }} --output-on-failure
run: ctest --test-dir ./build --output-on-failure
env:
QT_QPA_PLATFORM: offscreen
QT_QUICK_BACKEND: software

- name: Run tests on Window/macOS
if: ${{ runner.os != 'Linux' }}
run: ctest --test-dir ./build-${{ matrix.preset.name }} --output-on-failure
run: ctest --test-dir ./build --output-on-failure

- name: Read tests log when it fails
uses: andstor/file-reader-action@v1
if: ${{ failure() && startsWith(matrix.preset.name, 'ci-dev-') }}
with:
path: "./build-${{ matrix.preset.name }}/Testing/Temporary/LastTest.log"
path: "./build/Testing/Temporary/LastTest.log"

0 comments on commit e331699

Please sign in to comment.