Skip to content

Commit 8a4d13d

Browse files
committed
add an initial GitHub CI build workflow
This builds against various versions of Qt, both Qt5 and Qt6. Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
1 parent 8649415 commit 8a4d13d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/test_build.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Tests (ubuntu-latest gcc)
2+
on: [push, pull_request, workflow_dispatch]
3+
jobs:
4+
build-and-test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
# Available versions can be listed using
9+
# $ aqt list-qt linux desktop
10+
# and the corresponding arch(s) to use with
11+
# $ aqt list-qt linux desktop --arch <version>
12+
# and the names of extra modules with
13+
# $ aqt list-qt linux desktop --modules <version> <arch>
14+
#
15+
# Note the change of arch from `gcc_64` to `linux_gcc_64` starting with 6.7.0.
16+
qt-config:
17+
- version: '5.15.*'
18+
arch: gcc_64
19+
- version: '5.13.*'
20+
arch: gcc_64
21+
- version: '5.9.*'
22+
arch: gcc_64
23+
- version: '6.*'
24+
arch: linux_gcc_64
25+
modules: qt5compat
26+
- version: '6.5.*'
27+
arch: gcc_64
28+
modules: qt5compat
29+
- version: '6.2.*'
30+
arch: gcc_64
31+
modules: qt5compat
32+
steps:
33+
- id: install_qt
34+
name: "Install Qt using GHA"
35+
uses: jurplel/install-qt-action@v4
36+
with:
37+
arch: ${{ matrix.qt-config.arch }}
38+
version: ${{ matrix.qt-config.version }}
39+
modules: ${{ matrix.qt-config.modules }}
40+
- uses: actions/checkout@v4
41+
- id: make
42+
name: "Build with qmake and make"
43+
run: qmake && make -j$(nproc)
44+
- id: show_binary
45+
name: "Show details of the final binary"
46+
run: ls -l bin/valkyrie; ldd -r bin/valkyrie

0 commit comments

Comments
 (0)