[CI][premake] Use Qt5.15.0 and Qt6.0.4 #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- qt-version: '5.15.0' | |
qt-major-version: 'Qt5' | |
- qt-version: '6.0.4' | |
qt-major-version: 'Qt6' | |
# In qt6.1+, moc/uic/rcc binaries have been move from usr/bin to usr/lib/qt6/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Installing Qt${{matrix.qt-version}} ubuntu | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: ${{matrix.qt-version}} | |
cache: true | |
cache-key-prefix: 'qt-action@v4-Qt${{matrix.qt-version}}_ubuntu' | |
- name: set path | |
run: | | |
echo PATH=$PATH:`pwd` | |
echo PATH=$PATH:`pwd` >> $GITHUB_ENV | |
echo QT_DIR=$QT_ROOT_DIR | |
echo QT_DIR=$QT_ROOT_DIR >> $GITHUB_ENV | |
# CMake | |
- name: build with cmake | |
run: | | |
mkdir cmake-build | |
cd cmake-build | |
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . | |
# Premake | |
- name: checkout premake5 | |
uses: actions/checkout@v4 | |
with: | |
repository: premake/premake-core | |
path: premake-build | |
- name: Build premake5 | |
run: | | |
cd premake-build | |
make -f Bootstrap.mak linux CONFIG=release | |
cp bin/release/premake5 ../ | |
cd .. | |
rm -Rf premake-build | |
- name: build with premake | |
run: | | |
./premake5 gmake2 --qt-version=${{matrix.qt-major-version}} && cd solution/gmake2 && make config=release_x64 | |
# | |
# - name: install libxkbcommon-x11-0 # display dependency | |
# run: sudo apt-get install libxkbcommon-x11-0 | |
# | |
# - name: run | |
# timeout-minutes: 5 # tends to not stop properly in case of failure | |
# run: | # fake X-server as Qt widget requires displays :/ | |
# # Cannot use environment variable ($QT_ROOT_DIR) in command line, so use environment variable (QT_DIR) or its hardcoded value | |
# xvfb-run -a ./app | |
# |