From: Thomas Weißschuh Date: Fri, 22 Sep 2023 20:03:34 +0000 (+0200) Subject: ci: cache openwrt sdk X-Git-Tag: v2.40-rc1~231^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6fc6ab177be0830586224e670faa929a1f148e5;p=thirdparty%2Futil-linux.git ci: cache openwrt sdk Signed-off-by: Thomas Weißschuh --- diff --git a/.github/workflows/cibuild.yml b/.github/workflows/cibuild.yml index f6da622cf5..41ea836772 100644 --- a/.github/workflows/cibuild.yml +++ b/.github/workflows/cibuild.yml @@ -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 ~