From e6fc6ab177be0830586224e670faa929a1f148e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 22 Sep 2023 22:03:34 +0200 Subject: [PATCH] ci: cache openwrt sdk MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- .github/workflows/cibuild.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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 ~ -- 2.47.3