diff --git a/.github/actions/qt5-build/entrypoint.sh b/.github/actions/qt5-build/entrypoint.sh index 063f86d..104f7da 100755 --- a/.github/actions/qt5-build/entrypoint.sh +++ b/.github/actions/qt5-build/entrypoint.sh @@ -6,7 +6,7 @@ set -e set -x export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache" -export PATH="$Qt5_Dir/bin:$PATH" +export PATH="$QT_ROOT_DIR/bin:$PATH" qmake --version # Main project diff --git a/.github/actions/qt6-build/entrypoint.sh b/.github/actions/qt6-build/entrypoint.sh index 52be860..ff0f8c4 100755 --- a/.github/actions/qt6-build/entrypoint.sh +++ b/.github/actions/qt6-build/entrypoint.sh @@ -4,7 +4,7 @@ set -e set -x export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache" -export PATH="$Qt6_DIR/bin:$PATH" +export PATH="$QT_ROOT_DIR/bin:$PATH" qmake --version # Main project diff --git a/.github/workflows/Android.yml b/.github/workflows/Android.yml index 43e3a72..9ee21f5 100644 --- a/.github/workflows/Android.yml +++ b/.github/workflows/Android.yml @@ -89,18 +89,9 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Download Qt (desktop) - id: qt-desktop - uses: jurplel/install-qt-action@v3 - with: - aqtversion: ==3.1.* - version: ${{ matrix.qt_version }} - modules: qtlocation qtpositioning - set-env: false - - - name: Download Qt (Android) + - name: Download Qt id: qt-android - uses: jurplel/install-qt-action@v3 + uses: jurplel/install-qt-action@v4 with: aqtversion: ==3.1.* version: ${{ matrix.qt_version }} @@ -111,8 +102,8 @@ jobs: - name: Fix Qt release if: ${{ matrix.abi }} == 'armeabi-v7a' run: | - chmod +x "$Qt6_DIR/bin/qt-cmake" - sed -i "s/C:\/Qt\/Qt-${QT_VERSION}/\/usr\/local\/Qt-${QT_VERSION}/g" "$Qt6_DIR/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake" + 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: Set up OpenJDK 17 uses: actions/setup-java@v4 @@ -134,7 +125,7 @@ jobs: ANDROID_ABI: ${{ matrix.abi }} working-directory: source run: | - export QT_HOST_PATH="$(readlink -f "$Qt6_DIR/../gcc_64")" + export QT_HOST_PATH="$(readlink -f "$QT_ROOT_DIR/../gcc_64")" cmake --workflow --preset Android-ccache - name: Upload artifacts diff --git a/.github/workflows/Linux.yml b/.github/workflows/Linux.yml index d0556e5..0c7b3fb 100644 --- a/.github/workflows/Linux.yml +++ b/.github/workflows/Linux.yml @@ -128,7 +128,7 @@ jobs: rm -rf lcov - name: Download Qt - uses: jurplel/install-qt-action@v3 + uses: jurplel/install-qt-action@v4 with: aqtversion: ==3.1.* version: ${{ matrix.qt_version }} diff --git a/.github/workflows/Windows.yml b/.github/workflows/Windows.yml index dbe461a..34d9b21 100644 --- a/.github/workflows/Windows.yml +++ b/.github/workflows/Windows.yml @@ -99,7 +99,7 @@ jobs: git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 || true - name: Download Qt - uses: jurplel/install-qt-action@v3 + uses: jurplel/install-qt-action@v4 with: aqtversion: ==3.1.* version: ${{ matrix.qt_version }} diff --git a/.github/workflows/iOS.yml b/.github/workflows/iOS.yml index cb0da86..85cbeb5 100644 --- a/.github/workflows/iOS.yml +++ b/.github/workflows/iOS.yml @@ -67,17 +67,8 @@ jobs: with: xcode-version: latest-stable - - name: Download Qt (desktop) - uses: jurplel/install-qt-action@v3 - with: - aqtversion: ==3.1.* - version: ${{ matrix.qt_version }} - target: desktop - modules: qtlocation qtpositioning - set-env: false - - - name: Download Qt (iOS) - uses: jurplel/install-qt-action@v3 + - name: Download Qt + uses: jurplel/install-qt-action@v4 with: aqtversion: ==3.1.* version: ${{ matrix.qt_version }} @@ -96,7 +87,7 @@ jobs: - name: Build working-directory: source run: | - export QT_HOST_PATH="$(readlink -f "$Qt6_DIR/../macos")" + export QT_HOST_PATH="$(readlink -f "$QT_ROOT_DIR/../macos")" cmake --workflow --preset ${PRESET} - name: Upload installation diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml index 5601b10..1064179 100644 --- a/.github/workflows/macOS.yml +++ b/.github/workflows/macOS.yml @@ -105,7 +105,7 @@ jobs: } >> "$GITHUB_ENV" - name: Download Qt - uses: jurplel/install-qt-action@v3 + uses: jurplel/install-qt-action@v4 with: aqtversion: ==3.1.* version: ${{ matrix.qt_version }} diff --git a/cmake/presets/Android.json b/cmake/presets/Android.json index e80345f..0ed0f2f 100644 --- a/cmake/presets/Android.json +++ b/cmake/presets/Android.json @@ -7,7 +7,7 @@ "displayName": "Android configuration using Qt6", "generator": "Ninja", "binaryDir": "${sourceParentDir}/build/qt6-Android", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo", "ANDROID_ABI": "$penv{ANDROID_ABI}" diff --git a/cmake/presets/Linux.json b/cmake/presets/Linux.json index 3671a1f..f919c3b 100644 --- a/cmake/presets/Linux.json +++ b/cmake/presets/Linux.json @@ -7,7 +7,7 @@ "displayName": "Linux configuration using Qt6", "generator": "Ninja", "binaryDir": "${sourceParentDir}/build/qt6-Linux", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "QT_VERSION_MAJOR": "6" diff --git a/cmake/presets/WASM.json b/cmake/presets/WASM.json index abb2434..1cefd20 100644 --- a/cmake/presets/WASM.json +++ b/cmake/presets/WASM.json @@ -7,7 +7,7 @@ "displayName": "WASM configuration using Qt6", "generator": "Ninja", "binaryDir": "${sourceParentDir}/build/qt6-WASM", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo", "MLN_QT_WITH_LOCATION": "OFF" diff --git a/cmake/presets/Windows.json b/cmake/presets/Windows.json index d8a10bf..5c3fe5c 100644 --- a/cmake/presets/Windows.json +++ b/cmake/presets/Windows.json @@ -7,7 +7,7 @@ "displayName": "Windows configuration using Qt6", "generator": "Ninja Multi-Config", "binaryDir": "${sourceParentDir}/build/qt6-Windows", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_CONFIGURATION_TYPES": "Release;Debug" } diff --git a/cmake/presets/iOS.json b/cmake/presets/iOS.json index 62f003b..079a580 100644 --- a/cmake/presets/iOS.json +++ b/cmake/presets/iOS.json @@ -7,7 +7,7 @@ "displayName": "iOS configuration using Qt6", "generator": "Ninja Multi-Config", "binaryDir": "${sourceParentDir}/build/qt6-iOS", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_CONFIGURATION_TYPES": "Release;Debug", "CMAKE_OSX_ARCHITECTURES": "arm64;x86_64", diff --git a/cmake/presets/macOS.json b/cmake/presets/macOS.json index 1ac78f4..a3bfca6 100644 --- a/cmake/presets/macOS.json +++ b/cmake/presets/macOS.json @@ -7,7 +7,7 @@ "displayName": "macOS configuration using Qt6", "generator": "Ninja", "binaryDir": "${sourceParentDir}/build/qt6-macOS", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo", "CMAKE_OSX_ARCHITECTURES": "x86_64;arm64", diff --git a/examples/quick/CMakePresets.json b/examples/quick/CMakePresets.json index 38709db..f45b051 100644 --- a/examples/quick/CMakePresets.json +++ b/examples/quick/CMakePresets.json @@ -11,7 +11,7 @@ "displayName": "MapLibre Qt Quick example configuration", "generator": "Ninja", "binaryDir": "${sourceParentDir}/../../build/qt6-example-quick", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "CMAKE_C_COMPILER_LAUNCHER": "ccache", diff --git a/examples/widgets/CMakePresets.json b/examples/widgets/CMakePresets.json index 7afebec..35ce90f 100644 --- a/examples/widgets/CMakePresets.json +++ b/examples/widgets/CMakePresets.json @@ -11,7 +11,7 @@ "displayName": "MapLibre Qt Widgets example configuration", "generator": "Ninja", "binaryDir": "${sourceParentDir}/../../build/qt6-example-widgets", - "toolchainFile": "$penv{Qt6_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", + "toolchainFile": "$penv{QT_ROOT_DIR}/lib/cmake/Qt6/qt.toolchain.cmake", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "CMAKE_C_COMPILER_LAUNCHER": "ccache",