Skip to content

Commit

Permalink
Update to Qt 6.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ntadej committed Jan 11, 2025
1 parent d929c78 commit 63b3524
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .github/actions/qt6-build-legacy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/maplibre/linux-builder:centos8-gcc8

# Copy and set the entry point
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
8 changes: 8 additions & 0 deletions .github/actions/qt6-build-legacy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# action.yml
name: "Qt6 Linux Builder (Legacy)"
description: "Helper action to build in a specific Docker container"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.build-type }}
30 changes: 30 additions & 0 deletions .github/actions/qt6-build-legacy/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash -l

set -e
set -x

export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache"
export PATH="$QT_ROOT_DIR/bin:$PATH"
qmake --version

# Main project
pushd source
cmake --workflow --preset Linux-CI
popd

mkdir install && pushd install
tar xf ../build/qt6-Linux/maplibre-native-qt_*.tar.bz2
mv maplibre-native-qt_* maplibre-native-qt
popd

export QMapLibre_DIR="$(pwd)/install/maplibre-native-qt"

# QtQuick example
pushd source/examples/quick
cmake --workflow --preset default
popd

# QtWidgets example
pushd source/examples/widgets
cmake --workflow --preset default
popd
2 changes: 1 addition & 1 deletion .github/actions/qt6-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/maplibre/linux-builder:centos8-gcc8
FROM ghcr.io/maplibre/linux-builder:centos8-gcc11

# Copy and set the entry point
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/qt6-build/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash -l

source /opt/rh/gcc-toolset-11/enable

set -e
set -x

Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ jobs:
- qt_version: 6.7.3
abi: arm64-v8a
arch: android_arm64_v8a
- qt_version: 6.8.1
abi: x86
arch: android_x86
- qt_version: 6.8.1
abi: x86_64
arch: android_x86_64
- qt_version: 6.8.1
abi: armeabi-v7a
arch: android_armv7
- qt_version: 6.8.1
abi: arm64-v8a
arch: android_arm64_v8a

steps:
- name: Checkout
Expand All @@ -107,6 +119,11 @@ jobs:
chmod +x "$QT_ROOT_DIR/bin/qt-cmake"
sed -i "s/C:\/Qt\/Qt-${QT_VERSION}/\/usr\/local\/Qt-${QT_VERSION}/g" "$QT_ROOT_DIR/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake"
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: 3.30.x

- name: Set up OpenJDK 17
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -142,7 +159,7 @@ jobs:
needs: build
strategy:
matrix:
qt_version: [6.5.3, 6.6.3, 6.7.3]
qt_version: [6.5.3, 6.6.3, 6.7.3, 6.8.1]

steps:
- name: Download artifacts for x86
Expand Down Expand Up @@ -215,7 +232,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [6.5.3, 6.6.3, 6.7.3]
qt_version: [6.5.3, 6.6.3, 6.7.3, 6.8.1]

steps:
- name: Download artifacts
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ jobs:
preset: Linux-CI
compiler: default
- qt_series: 6
qt_version: 6.7.3
qt_version: 6.8.1
qt_modules: qtlocation qtpositioning
preset: Linux-CI
compiler: default
- qt_series: 6
qt_version: 6.8.1
qt_modules: qtlocation qtpositioning
preset: Linux-coverage
compiler: gcc-13
Expand Down Expand Up @@ -138,6 +143,12 @@ jobs:
target: desktop
modules: ${{ matrix.qt_modules }}

- name: Setup CMake
if: matrix.compiler != 'default'
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: 3.30.x

- name: Setup ninja
if: matrix.compiler != 'default'
uses: seanmiddleditch/gha-setup-ninja@v5
Expand All @@ -152,8 +163,12 @@ jobs:
if: matrix.qt_series == 5
uses: ./source/.github/actions/qt5-build

- name: Build (Qt6)
if: matrix.qt_series == 6 && matrix.compiler == 'default'
- name: Build (Qt6, GCC8)
if: matrix.qt_series == 6 && matrix.compiler == 'default' && matrix.qt_version != '6.8.1'
uses: ./source/.github/actions/qt6-build-legacy

- name: Build (Qt6, GCC11)
if: matrix.qt_series == 6 && matrix.compiler == 'default' && matrix.qt_version == '6.8.1'
uses: ./source/.github/actions/qt6-build

- name: Build (Qt6, custom compiler)
Expand Down Expand Up @@ -225,7 +240,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.3]
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.3, 6.8.1]

steps:
- name: Download artifacts
Expand Down
38 changes: 29 additions & 9 deletions .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,41 +45,49 @@ env:
jobs:
build-and-test:
name: Build (Qt${{ matrix.qt_version}}, ${{ matrix.arch }})
runs-on: windows-2022
runs-on: ${{ matrix.platform }}
strategy:
matrix:
include:
- qt_series: 5
qt_version: 5.15.2
qt_arch: win64_msvc2019_64
qt_modules: ""
platform: windows-2019
arch: msvc2019_64
compiler: x64
compiler_version: 14.29
preset: Windows-legacy-ccache
- qt_series: 6
qt_version: 6.5.3
qt_arch: win64_msvc2019_64
qt_modules: qtlocation qtpositioning
platform: windows-2019
arch: msvc2019_64
compiler: x64
compiler_version: 14.29
preset: Windows-ccache
- qt_series: 6
qt_version: 6.6.3
qt_arch: win64_msvc2019_64
qt_modules: qtlocation qtpositioning
platform: windows-2019
arch: msvc2019_64
compiler: x64
compiler_version: 14.29
preset: Windows-ccache
- qt_series: 6
qt_version: 6.7.3
qt_arch: win64_msvc2019_64
qt_modules: qtlocation qtpositioning
platform: windows-2019
arch: msvc2019_64
compiler: x64
compiler_version: 14.29
preset: Windows-ccache
- qt_series: 6
qt_version: 6.8.1
qt_arch: win64_msvc2022_64
qt_modules: qtlocation qtpositioning
platform: windows-2022
arch: msvc2022_64
compiler: x64
preset: Windows-ccache

env:
Expand Down Expand Up @@ -109,15 +117,18 @@ jobs:
arch: ${{ matrix.qt_arch }}
modules: ${{ matrix.qt_modules }}

- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: 3.30.x

- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@v5

- name: Setup MSVC
if: matrix.qt_arch == 'win64_msvc2019_64'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.compiler }}
toolset: ${{ matrix.compiler_version }}

- name: Update ccache
run: |
Expand Down Expand Up @@ -182,8 +193,17 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.3]
arch: [msvc2019_64]
include:
- qt_version: 5.15.2
arch: msvc2019_64
- qt_version: 6.5.3
arch: msvc2019_64
- qt_version: 6.6.3
arch: msvc2019_64
- qt_version: 6.7.3
arch: msvc2019_64
- qt_version: 6.8.1
arch: msvc2022_64

steps:
- name: Download artifacts
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
preset: iOS
- qt_version: 6.7.3
preset: iOS
- qt_version: 6.8.1
preset: iOS

env:
PRESET: ${{ matrix.preset }}
Expand All @@ -71,13 +73,15 @@ jobs:
brew uninstall google-chrome
sudo rm -rf /Users/runner/Library/Android
sudo rm -rf /Applications/Xcode_14*
sudo rm -rf /Applications/Xcode_15.0*
sudo rm -rf /Applications/Xcode_15.1*
sudo rm -rf /Applications/Xcode_15.2*
sudo rm -rf /Applications/Xcode_15.3*
sudo rm -rf /Applications/Xcode_15*
ls /Applications
df -h
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: 3.30.x

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
Expand Down Expand Up @@ -115,7 +119,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [6.5.3, 6.6.3, 6.7.3]
qt_version: [6.5.3, 6.6.3, 6.7.3, 6.8.1]

steps:
- name: Download artifacts
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ jobs:
compiler: static
runs_on: macos-14
- qt_series: 6
qt_version: 6.7.3
qt_version: 6.8.1
qt_modules: qtlocation qtpositioning
preset: macOS-ccache
compiler: default
runs_on: macos-14
- qt_series: 6
qt_version: 6.8.1
qt_modules: qtlocation qtpositioning
preset: macOS-clang-tidy
compiler: llvm
Expand Down Expand Up @@ -131,6 +137,11 @@ jobs:
echo "$PWD/Qt/$QT_VERSION/macos_static/bin" >> $GITHUB_PATH
cd $GITHUB_WORKSPACE
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: 3.30.x

- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@v5

Expand Down Expand Up @@ -204,6 +215,9 @@ jobs:
- qt_version: 6.7.3
compiler: static
suffix: "_static"
- qt_version: 6.8.1
compiler: default
suffix: ""

steps:
- name: Download artifacts
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/source-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,16 @@ jobs:
uses: jurplel/install-qt-action@v4
with:
aqtversion: ==3.1.*
version: 6.7.3
version: 6.8.1
dir: ${{ github.workspace }}
target: desktop
modules: qtlocation qtpositioning

- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: 3.30.x

- name: Build
run: |
mkdir build && cd build
Expand Down

0 comments on commit 63b3524

Please sign in to comment.