From 4163973319e44f7f3f5baef8c99b1a2159c426bd Mon Sep 17 00:00:00 2001 From: tooomm Date: Sun, 12 Apr 2026 12:00:46 +0200 Subject: [PATCH] deduplication --- .github/workflows/desktop-build.yml | 30 +++++++++-------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index aeed5da81..c05bf0c39 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -159,7 +159,7 @@ jobs: timeout-minutes: 70 env: NAME: ${{matrix.distro}}${{matrix.version}} - CACHE: ${{github.workspace}}/.cache/${{matrix.distro}}${{matrix.version}} # directory for caching docker image and ccache + CACHE: ${{github.workspace}}/.cache/${{matrix.distro}}${{matrix.version}} # directory for caching docker image and ccache # Cache size over the entire repo is 10Gi: # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy CCACHE_SIZE: 550M @@ -281,12 +281,9 @@ jobs: override_target: 13 make_package: 1 package_suffix: "-macOS13_Intel" - qt_version: 6.11.* qt_arch: clang_64 - qt_modules: qtimageformats qtmultimedia qtwebsockets cmake_generator: Ninja use_ccache: 1 - ccache_eviction_age: 7d - os: macOS target: 14 @@ -296,12 +293,9 @@ jobs: type: Release make_package: 1 package_suffix: "-macOS14" - qt_version: 6.11.* qt_arch: clang_64 - qt_modules: qtimageformats qtmultimedia qtwebsockets cmake_generator: Ninja use_ccache: 1 - ccache_eviction_age: 7d - os: macOS target: 15 @@ -311,12 +305,9 @@ jobs: type: Release make_package: 1 package_suffix: "-macOS15" - qt_version: 6.11.* qt_arch: clang_64 - qt_modules: qtimageformats qtmultimedia qtwebsockets cmake_generator: Ninja use_ccache: 1 - ccache_eviction_age: 7d - os: macOS target: 15 @@ -324,12 +315,9 @@ jobs: soc: Apple xcode: "16.4" type: Debug - qt_version: 6.11.* qt_arch: clang_64 - qt_modules: qtimageformats qtmultimedia qtwebsockets cmake_generator: Ninja use_ccache: 1 - ccache_eviction_age: 7d - os: Windows target: 10 @@ -337,9 +325,7 @@ jobs: type: Release make_package: 1 package_suffix: "-Win10" - qt_version: 6.11.* qt_arch: win64_msvc2022_64 - qt_modules: qtimageformats qtmultimedia qtwebsockets cmake_generator: "Visual Studio 17 2022" cmake_generator_platform: x64 @@ -352,6 +338,9 @@ jobs: # Cache size over the entire repo is 10Gi: # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy CCACHE_SIZE: 550M + CCACHE_EVICTION_AGE: 7d + QT_VERSION: 6.11.* + QT_MODULES: qtimageformats qtmultimedia qtwebsockets steps: - name: Checkout @@ -388,7 +377,7 @@ jobs: - name: Resolve latest Qt patch version id: resolve_qt_version shell: bash - run: .ci/resolve_latest_aqt_qt_version.sh "${{matrix.qt_version}}" + run: .ci/resolve_latest_aqt_qt_version.sh "${{ env.QT_VERSION }}" - name: Restore thin Qt ${{ steps.resolve_qt_version.outputs.version }} libraries (${{ matrix.soc }} macOS) if: matrix.os == 'macOS' @@ -406,7 +395,7 @@ jobs: with: version: ${{ steps.resolve_qt_version.outputs.version }} arch: ${{matrix.qt_arch}} - modules: ${{matrix.qt_modules}} + modules: ${{env.QT_MODULES}} cache: false dir: ${{github.workspace}} @@ -421,15 +410,15 @@ jobs: path: ${{ github.workspace }}/Qt key: thin-qt-macos-${{ matrix.soc }}-${{ steps.resolve_qt_version.outputs.version }} - - name: Install Qt ${{matrix.qt_version}} (Windows) + - name: Install Qt ${{ env.QT_VERSION }} (Windows) if: matrix.os == 'Windows' uses: jurplel/install-qt-action@v4 with: - # qt 6.11.0 only works with aqtinstall directly from git until aqtinstall 3.4 is released + # Qt 6.11.0 only works with aqtinstall directly from git until aqtinstall 3.4 is released aqtsource: git+https://github.com/miurahr/aqtinstall.git version: ${{ steps.resolve_qt_version.outputs.version }} arch: ${{matrix.qt_arch}} - modules: ${{matrix.qt_modules}} + modules: ${{env.QT_MODULES}} cache: true - name: Install NSIS @@ -463,7 +452,6 @@ jobs: MACOS_CI_KEYCHAIN_PWD: ${{ secrets.PROD_MACOS_CI_KEYCHAIN_PWD }} DEVELOPER_DIR: '/Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer' TARGET_MACOS_VERSION: ${{ matrix.override_target }} - CCACHE_EVICTION_AGE: ${{ matrix.ccache_eviction_age }} run: .ci/compile.sh --server --test --vcpkg # Delete used cache to emulate a ccache update. See https://github.com/actions/cache/issues/342