Skip to content

Commit

Permalink
Fixing CI (#113)
Browse files Browse the repository at this point in the history
* MacOS 14 only supports Arm64 but Qt5 not, so I pin it to macOS 13 on Qt5.
* Bump Checkout Action from 3 to 4, because it uses an old Node Version.
* Adding an extra test case for macOS, because on macOS 14 with Qt6 the -platform minimal is not supported.

---------

Co-authored-by: Sebastian Feustel <sebastian.feustel@kdab.com>
Co-authored-by: Falko Axmann <51922941+faaxm@users.noreply.github.com>
  • Loading branch information
3 people authored May 12, 2024
1 parent 1508416 commit acb4ff5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# Qt v5.15.2
{name: 'qt-5.15.2 ubuntu', os: ubuntu-latest, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'ON'},
{name: 'qt-5.15.2 windows', os: windows-latest, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'ON', cmake_flags: '"-DAnyRPC_ROOT=C:/Program Files (x86)/AnyRPC" "-DGTest_ROOT=C:/Program Files (x86)/googletest-distribution"'},
{name: 'qt-5.15.2 macos', os: macos-latest, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'ON'},
{name: 'qt-5.15.2 macos', os: macos-13, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'ON'},
# Qt v6.2.3
{name: 'qt-6.2.3 ubuntu', os: ubuntu-latest, build_type: Debug, qt_version: [6, 2, 3], shared_libs: 'OFF', tests: 'ON'},
{name: 'qt-6.2.3 windows', os: windows-latest, build_type: Debug, qt_version: [6, 2, 3], shared_libs: 'OFF', tests: 'ON', cmake_flags: '"-DAnyRPC_ROOT=C:/Program Files (x86)/AnyRPC" "-DGTest_ROOT=C:/Program Files (x86)/googletest-distribution"'},
Expand All @@ -36,7 +36,7 @@ jobs:
]
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Qt
uses: jurplel/install-qt-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.14
with:
source: '.'
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/run-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ jobs:
# Qt v5.15.2
{name: 'qt-5.15.2 ubuntu', os: ubuntu-latest, build_type: Debug,qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'OFF'},
{name: 'qt-5.15.2 windows', os: windows-latest, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'OFF', cmake_flags: '"-DAnyRPC_ROOT=C:/Program Files (x86)/AnyRPC" "-DGTest_ROOT=C:/Program Files (x86)/googletest-distribution"'},
{name: 'qt-5.15.2 macos', os: macos-latest, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'OFF'},
{name: 'qt-5.15.2 macos', os: macos-13, build_type: Debug, qt_version: [5, 15, 2], shared_libs: 'OFF', tests: 'OFF'},
# Qt v6.2.3
{name: 'qt-6.2.3 ubuntu', os: ubuntu-latest, build_type: Debug, qt_version: [6, 2, 3], shared_libs: 'OFF', tests: 'OFF'},
{name: 'qt-6.2.3 windows', os: windows-latest, build_type: Debug, qt_version: [6, 2, 3], shared_libs: 'OFF', tests: 'OFF', cmake_flags: '"-DAnyRPC_ROOT=C:/Program Files (x86)/AnyRPC" "-DGTest_ROOT=C:/Program Files (x86)/googletest-distribution"'},

# Qt6 on GitHub Actions MacOS is currently bugged: https://bugreports.qt.io/browse/QTIFW-1592
# {name: 'qt-6.2.3 macos', os: macos-latest, build_type: Debug, qt_version: [6, 2, 3], shared_libs: 'OFF', tests: 'OFF'},
{name: 'qt-6.2.3 macos', os: macos-latest, build_type: Debug, qt_version: [6, 2, 3], shared_libs: 'OFF', tests: 'OFF'},
]
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Qt
uses: jurplel/install-qt-action@v3
Expand All @@ -42,9 +40,9 @@ jobs:
- name: "Build"
run: cmake --build build --config ${{ matrix.base.build_type }}
- name: "Test GTest Examples (*nix)"
if: ${{ !contains(matrix.base.os, 'windows') }}

- name: "Test GTest Examples (Linux)"
if: ${{ contains(matrix.base.os, 'ubuntu') }}
run: |
build/examples/GTest/SpixGTestExample -platform minimal
build/examples/RepeaterLoader/SpixRepeaterLoaderExampleGTest -platform minimal
Expand All @@ -54,3 +52,9 @@ jobs:
run: |
.\build\examples\GTest\${{ matrix.base.build_type }}\SpixGTestExample.exe -platform minimal
.\build\examples\RepeaterLoader\${{ matrix.base.build_type }}\SpixRepeaterLoaderExampleGTest.exe -platform minimal
- name: "Test GTest Examples (mac)"
if: ${{ contains(matrix.base.os, 'mac') }}
run: |
build/examples/GTest/SpixGTestExample
build/examples/RepeaterLoader/SpixRepeaterLoaderExampleGTest

0 comments on commit acb4ff5

Please sign in to comment.