From ba9a0ba459496bf21653dd4ca96390e26480b79f Mon Sep 17 00:00:00 2001 From: YaoXin <78600221+BeyondXinXin@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:16:19 +0800 Subject: [PATCH] CI Increase cache QT (#1975) --- .github/workflows/ci-linux.yml | 8 ++++++++ .github/workflows/ci-macos.yml | 9 +++++++++ .github/workflows/ci-win.yml | 8 ++++++++ 3 files changed, 25 insertions(+) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 0aa4fd63..0b5b009f 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -40,6 +40,13 @@ jobs: sudo DEBIAN_FRONTEND=noninteractive apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfcitx-qt5-dev tree + - name: Cache Qt + id: cache-qt + uses: actions/cache@v1 # not v2! + with: + path: ../Qt + key: ${{ runner.os }}-QtCache + - name: Install Qt uses: jurplel/install-qt-action@v2 with: @@ -47,6 +54,7 @@ jobs: target: desktop modules: qtwebchannel qtwebengine qtsvg qtlocation qttools qttranslations tools: tools_openssl_x64,1.1.1-4,qt.tools.openssl.gcc_64 + cached: ${{ steps.cache-qt.outputs.cache-hit }} - name: Create Build Dir run: mkdir build diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 6d6ec0ca..f4c2dd01 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -39,12 +39,21 @@ jobs: git clone https://github.com/tamlok/macdeployqtfix.git macdeployqtfix --depth=1 working-directory: ${{runner.workspace}} + - name: Cache Qt + id: cache-qt + uses: actions/cache@v1 # not v2! + with: + path: ../Qt + key: ${{ runner.os }}-QtCache + - name: Install Qt uses: jurplel/install-qt-action@v2 with: version: 5.12.10 target: desktop modules: qtwebchannel qtwebengine qtsvg qtlocation qttools qttranslations + cached: ${{ steps.cache-qt.outputs.cache-hit }} + - name: Create Build Dir run: mkdir build diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index 56280b3a..5757a74a 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -45,6 +45,13 @@ jobs: git submodule sync --recursive git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 + - name: Cache Qt + id: cache-qt + uses: actions/cache@v1 # not v2! + with: + path: ../Qt + key: ${{ runner.os }}-${{matrix.config.arch}}-QtCache + - name: Install Qt uses: jurplel/install-qt-action@v2 with: @@ -53,6 +60,7 @@ jobs: arch: ${{matrix.config.arch}} modules: qtwebchannel qtwebengine qtsvg qtlocation qttools qttranslations tools: tools_openssl_${{matrix.config.platform}},1.1.1-4,qt.tools.openssl.win_${{matrix.config.platform}} + cached: ${{ steps.cache-qt.outputs.cache-hit }} - name: Create Build Dir shell: bash