From f15c050adf58fe6ce20e5d0251beed16e8589b0e Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Thu, 9 Nov 2023 14:45:04 +0700 Subject: [PATCH] Use INSTALL_QT_VERSION variable in workflows --- .github/workflows/android.yml | 10 +++++----- .github/workflows/ios.yml | 12 +++++++----- .github/workflows/linux.yml | 7 ++++--- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 09bce6e8aa..6b9a0436e8 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -61,8 +61,8 @@ jobs: BUILD_ROOT="/home/runner" echo "BUILD_ROOT=${BUILD_ROOT}" >> $GITHUB_ENV echo "BUILD_TYPE=Release" >> $GITHUB_ENV - echo "CMAKE_BUILD_DIR=${BUILD_ROOT}/builddir" >> $GITHUB_ENV + echo "INSTALL_QT_VERSION=6.6.0" >> $GITHUB_ENV - name: 🐩 Install CMake and Ninja uses: lukka/get-cmake@latest @@ -70,7 +70,7 @@ jobs: - name: 💐 Install Qt (Android) uses: jurplel/install-qt-action@v3 with: - version: 6.6.0 + version: ${{ env.INSTALL_QT_VERSION }} modules: 'qt5compat qtcharts qtpositioning qtserialport qtconnectivity qtimageformats qtmultimedia qtwebview qtsensors' target: android arch: ${{ matrix.qt_arch }} @@ -79,7 +79,7 @@ jobs: - name: 💐 Install Qt (Desktop) uses: jurplel/install-qt-action@v3 with: - version: 6.6.0 + version: ${{ env.INSTALL_QT_VERSION }} modules: 'qt5compat qtcharts qtpositioning qtserialport qtconnectivity qtimageformats qtmultimedia qtwebview qtsensors' target: desktop cache: false @@ -129,8 +129,8 @@ jobs: -D WITH_ALL_FILES_ACCESS="${{ matrix.all_files_access }}" \ -D WITH_SPIX=OFF \ -D CMAKE_PREFIX_PATH=${Qt6_DIR} \ - -D QT_HOST_PATH=/home/runner/work/QField/Qt/6.6.0/gcc_64 \ - -D QT_HOST_PATH_CMAKE_DIR:PATH=/home/runner/work/QField/Qt/6.6.0/gcc_64 \ + -D QT_HOST_PATH=/home/runner/work/QField/Qt/${{ env.INSTALL_QT_VERSION }}/gcc_64 \ + -D QT_HOST_PATH_CMAKE_DIR:PATH=/home/runner/work/QField/Qt/${{ env.INSTALL_QT_VERSION }}/gcc_64 \ -D APP_VERSION="${APP_VERSION}" \ -D APK_VERSION_CODE="${APK_VERSION_CODE}" \ -D APP_VERSION_STR="${APP_VERSION_STR}" \ diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 1b4a52a3c3..16afd25d3e 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -25,12 +25,14 @@ jobs: with: submodules: recursive - - name: 🌾 Prepare vars + - name: 🌾 Prepare variables id: vars shell: bash run: | ./scripts/ci/env_gh.sh + echo "INSTALL_QT_VERSION=6.6.0" >> $GITHUB_ENV + - uses: Apple-Actions/import-codesign-certs@v2 with: p12-file-base64: ${{ env.CI_USE_IOS_DIST_CERT && secrets.APPLE_CODESIGN_CERT_BASE64_DIST || secrets.APPLE_CODESIGN_CERT_BASE64_DEV }} @@ -46,7 +48,7 @@ jobs: - name: 💐 Install Qt uses: jurplel/install-qt-action@v3 with: - version: 6.6.0 + version: ${{ env.INSTALL_QT_VERSION }} modules: 'qt5compat qtcharts qtpositioning qtconnectivity qtimageformats qtmultimedia qtwebview qtsensors' target: ios cache: true @@ -54,7 +56,7 @@ jobs: - name: 💐 Install Qt uses: jurplel/install-qt-action@v3 with: - version: 6.6.0 + version: ${{ env.INSTALL_QT_VERSION }} target: desktop cache: false @@ -110,8 +112,8 @@ jobs: -D CMAKE_SYSTEM_NAME=iOS \ -D CMAKE_SYSTEM_PROCESSOR=aarch64 \ -D CMAKE_OSX_DEPLOYMENT_TARGET=${{ env.DEPLOYMENT_TARGET }} \ - -D QT_HOST_PATH=${{ github.workspace }}/../Qt/6.6.0/macos \ - -D QT_HOST_PATH_CMAKE_DIR:PATH=${{ github.workspace }}/../Qt/6.6.0/macos \ + -D QT_HOST_PATH=${{ github.workspace }}/../Qt/${{ env.INSTALL_QT_VERSION }}/macos \ + -D QT_HOST_PATH_CMAKE_DIR:PATH=${{ github.workspace }}/../Qt/${{ env.INSTALL_QT_VERSION }}/macos \ -D ENABLE_TESTS=OFF \ -D CMAKE_CXX_VISIBILITY_PRESET=hidden \ -D WITH_CCACHE=ON diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bb1c67da17..5707661261 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -21,7 +21,7 @@ jobs: with: submodules: recursive - - name: 🌾 Prepare vars + - name: 🌾 Prepare variables id: vars run: | ./scripts/ci/env_gh.sh @@ -30,6 +30,7 @@ jobs: echo "BUILD_ROOT=${BUILD_ROOT}" >> $GITHUB_ENV echo "BUILD_TYPE=Release" >> $GITHUB_ENV echo "CMAKE_BUILD_DIR=${BUILD_ROOT}/builddir" >> $GITHUB_ENV + echo "INSTALL_QT_VERSION=6.6.0" >> $GITHUB_ENV - name: 🐩 Install CMake and Ninja uses: lukka/get-cmake@latest @@ -44,7 +45,7 @@ jobs: - name: 💐 Install Qt uses: jurplel/install-qt-action@v3 with: - version: 6.6.0 + version: ${{ env.INSTALL_QT_VERSION }} modules: 'qt5compat qtcharts qtpositioning qtserialport qtconnectivity qtimageformats qtmultimedia qtwebview qtsensors' target: desktop @@ -93,7 +94,7 @@ jobs: - name: Package run: | - rm /home/runner/work/QField/Qt/6.6.0/gcc_64/plugins/sqldrivers/libqsqlmimer.so + rm /home/runner/work/QField/Qt/${{ env.INSTALL_QT_VERSION }}/gcc_64/plugins/sqldrivers/libqsqlmimer.so export LD_LIBRARY_PATH="${{ env.CMAKE_BUILD_DIR }}/vcpkg_installed/x64-linux/lib/":${LD_LIBRARY_PATH} cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target bundle --config ${{ env.BUILD_TYPE }} echo "ARTIFACT_PATHNAME=${{ env.CMAKE_BUILD_DIR }}/QField-x86_64.AppImage" >> $GITHUB_ENV