Skip to content

Commit

Permalink
Update to Qt 6.7.2 (#140)
Browse files Browse the repository at this point in the history
* Update to Qt 6.7.2

* Add macOS static build

* Fix static build test
  • Loading branch information
ntadej authored Jun 25, 2024
1 parent 84ea3df commit ad2ad8c
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 28 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ jobs:
- qt_version: 6.6.3
abi: arm64-v8a
arch: android_arm64_v8a
# - qt_version: 6.7.1
# abi: x86
# arch: android_x86
# - qt_version: 6.7.1
# abi: x86_64
# arch: android_x86_64
# - qt_version: 6.7.1
# abi: armeabi-v7a
# arch: android_armv7
# - qt_version: 6.7.1
# abi: arm64-v8a
# arch: android_arm64_v8a
- qt_version: 6.7.2
abi: x86
arch: android_x86
- qt_version: 6.7.2
abi: x86_64
arch: android_x86_64
- qt_version: 6.7.2
abi: armeabi-v7a
arch: android_armv7
- qt_version: 6.7.2
abi: arm64-v8a
arch: android_arm64_v8a

steps:
- name: Checkout
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [6.5.3, 6.6.3]
qt_version: [6.5.3, 6.6.3, 6.7.2]

steps:
- name: Download artifacts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
preset: Linux-CI
compiler: default
- qt_series: 6
qt_version: 6.7.1
qt_version: 6.7.2
qt_modules: qtlocation qtpositioning
preset: Linux-CI
compiler: default
- qt_series: 6
qt_version: 6.7.1
qt_version: 6.7.2
qt_modules: qtlocation qtpositioning
preset: Linux-coverage
compiler: gcc-13
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.1]
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.2]

steps:
- name: Download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
compiler_version: 14.29
preset: Windows-ccache
- qt_series: 6
qt_version: 6.7.1
qt_version: 6.7.2
qt_arch: win64_msvc2019_64
qt_modules: qtlocation qtpositioning
arch: msvc2019_64
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.1]
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.2]
arch: [msvc2019_64]

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
preset: iOS-ccache
- qt_version: 6.6.3
preset: iOS-ccache
- qt_version: 6.7.1
- qt_version: 6.7.2
preset: iOS-ccache

env:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [6.5.3, 6.6.3, 6.7.1]
qt_version: [6.5.3, 6.6.3, 6.7.2]

steps:
- name: Download artifacts
Expand Down
57 changes: 49 additions & 8 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,18 @@ jobs:
compiler: default
runs_on: macos-14
- qt_series: 6
qt_version: 6.7.1
qt_version: 6.7.2
qt_modules: qtlocation qtpositioning
preset: macOS-ccache
compiler: default
runs_on: macos-14
- qt_series: 6
qt_version: 6.7.1
qt_version: 6.7.2
preset: macOS-ccache
compiler: static
runs_on: macos-14
- qt_series: 6
qt_version: 6.7.2
qt_modules: qtlocation qtpositioning
preset: macOS-clang-tidy
compiler: llvm
Expand All @@ -78,6 +83,7 @@ jobs:
env:
COMPILER: ${{ matrix.compiler }}
PRESET: ${{ matrix.preset }}
QT_VERSION: ${{ matrix.qt_version }}

steps:
- name: Checkout
Expand All @@ -93,7 +99,7 @@ jobs:
xcode-version: latest-stable

- name: Setup compiler (macOS)
if: matrix.compiler != 'default'
if: matrix.compiler != 'default' && matrix.compiler != 'static'
run: |
brew install "$COMPILER"
echo "/opt/homebrew/opt/${COMPILER}/bin" >> "$GITHUB_PATH"
Expand All @@ -105,13 +111,24 @@ jobs:
} >> "$GITHUB_ENV"
- name: Download Qt
if: matrix.compiler != 'static'
uses: jurplel/install-qt-action@v4
with:
aqtversion: ==3.1.*
version: ${{ matrix.qt_version }}
target: desktop
modules: ${{ matrix.qt_modules }}

- name: Download Static Qt
if: matrix.compiler == 'static'
run: |
cd ..
wget https://github.com/ntadej/qt-build/releases/download/v${QT_VERSION}.0/Qt_macOS_static.tar.bz2
tar xvf Qt_macOS_static.tar.bz2
echo "QT_ROOT_DIR=$PWD/Qt/$QT_VERSION/macos_static" >> $GITHUB_ENV
echo "$PWD/Qt/$QT_VERSION/macos_static/bin" >> $GITHUB_PATH
cd $GITHUB_WORKSPACE
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@v5

Expand Down Expand Up @@ -147,10 +164,10 @@ jobs:
cmake --workflow --preset default
- name: Upload installation
if: matrix.compiler == 'default'
if: matrix.compiler == 'default' || matrix.compiler == 'static'
uses: actions/upload-artifact@v4
with:
name: macOS_${{ matrix.qt_version }}
name: macOS_${{ matrix.qt_version }}_${{ matrix.compiler }}
path: build/qt${{ matrix.qt_series }}-macOS/maplibre-native-qt_*.tar.bz2

- name: Upload examples
Expand All @@ -169,17 +186,41 @@ jobs:
contents: write
strategy:
matrix:
qt_version: [5.15.2, 6.5.3, 6.6.3, 6.7.1]
include:
- qt_version: 5.15.2
compiler: default
suffix: ""
- qt_version: 6.5.3
compiler: default
suffix: ""
- qt_version: 6.6.3
compiler: default
suffix: ""
- qt_version: 6.7.2
compiler: default
suffix: ""
- qt_version: 6.7.2
compiler: static
suffix: "_static"

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: macOS_${{ matrix.qt_version }}
name: macOS_${{ matrix.qt_version }}_${{ matrix.compiler }}

- name: Rename artifacts
if: matrix.compiler != 'default'
env:
QT_VERSION: ${{ matrix.qt_version }}
TAG_NAME: ${{ github.ref_name }}
PLATFORM_SUFFIX: ${{ matrix.suffix }}
run: |
mv maplibre-native-qt_${TAG_NAME}_Qt${QT_VERSION}_macOS.tar.bz2 maplibre-native-qt_${TAG_NAME}_Qt${QT_VERSION}_macOS${PLATFORM_SUFFIX}.tar.bz2
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: maplibre-native-qt_${{ github.ref_name }}_Qt${{ matrix.qt_version }}_macOS.tar.bz2
artifacts: maplibre-native-qt_${{ github.ref_name }}_Qt${{ matrix.qt_version }}_macOS${{ matrix.suffix }}.tar.bz2
allowUpdates: true
draft: true
10 changes: 10 additions & 0 deletions test/qml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ target_link_libraries(
$<BUILD_INTERFACE:mbgl-compiler-options>
)

get_target_property(MLNQtLocationTargetType MLNQtLocation TYPE)
if (MLNQtLocationTargetType STREQUAL STATIC_LIBRARY)
target_link_libraries(
test_mln_qml
PRIVATE
${MLN_QT_GEOSERVICES_PLUGIN}
${MLN_QT_QML_PLUGIN}
)
endif()

if(MLN_QT_WITH_CLANG_TIDY)
set_target_properties(test_mln_qml PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")
endif()
Expand Down

0 comments on commit ad2ad8c

Please sign in to comment.