From 86fcb8123842fbba25d9c2d87f19207fb6f24123 Mon Sep 17 00:00:00 2001 From: Holden Date: Sat, 22 Feb 2025 06:45:20 -0500 Subject: [PATCH] CI: Cache Qt --- .github/actions/qt-android/action.yml | 5 +++++ .github/workflows/custom.yml | 1 + .github/workflows/ios.yml | 2 ++ .github/workflows/linux.yml | 1 + .github/workflows/macos.yml | 1 + .github/workflows/windows.yml | 1 + 6 files changed, 11 insertions(+) diff --git a/.github/actions/qt-android/action.yml b/.github/actions/qt-android/action.yml index 99eaa8e0d4e..4c05e0e500d 100644 --- a/.github/actions/qt-android/action.yml +++ b/.github/actions/qt-android/action.yml @@ -74,6 +74,7 @@ runs: dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors setup-python: false + cache: true - name: Install Qt for Android (armv7) if: contains( inputs.abis, 'armeabi-v7a') @@ -86,6 +87,7 @@ runs: dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors setup-python: false + cache: true - name: Install Qt for Android (arm64_v8a) if: contains( inputs.abis, 'arm64-v8a') @@ -98,6 +100,7 @@ runs: dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors setup-python: false + cache: true - name: Install Qt for Android (x86) if: contains( inputs.abis, 'x86') @@ -110,6 +113,7 @@ runs: dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors setup-python: false + cache: true - name: Install Qt for Android (x86_64) if: contains( inputs.abis, 'x86_64') @@ -122,3 +126,4 @@ runs: dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors setup-python: false + cache: true diff --git a/.github/workflows/custom.yml b/.github/workflows/custom.yml index 72ba3f16ec0..4f624970a9c 100644 --- a/.github/workflows/custom.yml +++ b/.github/workflows/custom.yml @@ -78,6 +78,7 @@ jobs: arch: win64_msvc2022_64 dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors + cache: true - name: Set up Visual Studio shell uses: ilammy/msvc-dev-cmd@v1 diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 384bad18fb4..3bc9e5258a6 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -56,6 +56,7 @@ jobs: arch: clang_64 dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors + cache: true - name: Install Qt for iOS uses: jurplel/install-qt-action@v4 @@ -66,6 +67,7 @@ jobs: arch: ios dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors + cache: true - name: Configure working-directory: ${{ runner.temp }}/shadow_build_dir diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 95931124e16..e8e8c1c2ee3 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -84,6 +84,7 @@ jobs: arch: linux_gcc_64 dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors + cache: true # - name: Build GStreamer # uses: ./.github/actions/gstreamer diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e75a937a054..e6ef15950d1 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -72,6 +72,7 @@ jobs: arch: clang_64 dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors + cache: true - name: Import Code Signing Certificate if: github.event_name != 'pull_request' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4ecdaff4808..a84aaae9fed 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -78,6 +78,7 @@ jobs: arch: win64_msvc2022_64 dir: ${{ runner.temp }} modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors + cache: true # Note: Must Use QtMultimedia VideoReceiver or build GStreamer manually - name: Install Qt for Windows (Arm64)