From 294e250f08f2007c5c5f26abb70dd1f28ce5e956 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Fri, 21 Jan 2022 13:10:12 +1000 Subject: [PATCH] [ghactions] Cache Qt dependencies for building Windows Companion (#1431) * [action] Cache QT install files * Take into account two windows builds Note: If for any reason the cache is corrupted, the cache key will need to be updated to make it re-build. --- .github/workflows/win-cpn-32.yml | 10 +++++++++- .github/workflows/win_cpn.yml | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/win-cpn-32.yml b/.github/workflows/win-cpn-32.yml index a84903fac..5a853ab77 100644 --- a/.github/workflows/win-cpn-32.yml +++ b/.github/workflows/win-cpn-32.yml @@ -65,10 +65,18 @@ jobs: mingw-w64-i686-clang \ mingw-w64-i686-nsis pip install Pillow clang - + + - name: Cache Qt + id: cache-qt + uses: actions/cache@v1 # not v2! + with: + path: ../Qt + key: win32-QtCache + - name: Install Qt uses: jurplel/install-qt-action@v2 with: + cached: ${{ steps.cache-qt.outputs.cache-hit }} version: ${{ env.QT_VERSION }} arch: ${{ env.MINGW_VERSION }} diff --git a/.github/workflows/win_cpn.yml b/.github/workflows/win_cpn.yml index 7c579b3c0..68806737d 100644 --- a/.github/workflows/win_cpn.yml +++ b/.github/workflows/win_cpn.yml @@ -68,10 +68,18 @@ jobs: mingw-w64-x86_64-clang \ mingw-w64-x86_64-nsis pip install Pillow clang - + + - name: Cache Qt + id: cache-qt + uses: actions/cache@v1 # not v2! + with: + path: ../Qt + key: win64-QtCache + - name: Install Qt uses: jurplel/install-qt-action@v2 with: + cached: ${{ steps.cache-qt.outputs.cache-hit }} version: ${{ env.QT_VERSION }} arch: ${{ env.MINGW_VERSION }}