1
0
YaoXin 4 жил өмнө
parent
commit
ba9a0ba459

+ 8 - 0
.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

+ 9 - 0
.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

+ 8 - 0
.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