]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ci: cache openwrt sdk
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 20:03:34 +0000 (22:03 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 20:21:15 +0000 (22:21 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
.github/workflows/cibuild.yml

index f6da622cf54530e6979d037b060e77984eaac75b..41ea836772dacecae37c33d4aa26024917a544c9 100644 (file)
@@ -221,7 +221,14 @@ jobs:
           echo "COMPILER=$COMPILER" >> $GITHUB_ENV
           echo "OPENWRT_RELEASE=$OPENWRT_RELEASE" >> $GITHUB_ENV
           echo "OPENWRT_SDK=$OPENWRT_SDK" >> $GITHUB_ENV
+      - name: Cache OpenWRT SDK
+        id: cache-openwrt-sdk
+        uses: actions/cache@v3
+        with:
+          path: ~/${{ env.OPENWRT_SDK }}
+          key: ${{ env.OPENWRT_SDK }}
       - name: Download toolchain
+        if: steps.cache-openwrt-sdk.outputs.cache-hit != 'true'
         run: |
           curl -o ~/${{ env.OPENWRT_SDK }}.tar.xz -C - https://downloads.cdn.openwrt.org/releases/${{ env.OPENWRT_RELEASE }}/targets/${{ matrix.target }}/${{ matrix.subtarget }}/${{ env.OPENWRT_SDK }}.tar.xz
           tar xf ~/${{ env.OPENWRT_SDK }}.tar.xz -C ~