From 9618512c8f7df82ab1060f6424971a16181f5cc5 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Mon, 30 Jan 2023 11:27:57 +0000 Subject: [PATCH] Give up and cache the entire openwrt buildchain --- .github/workflows/tests.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4a7b74c..337bc76 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -424,7 +424,15 @@ jobs: working-directory: openwrt steps: + - name: Cache entire openwrt dir + id: cache-openwrt + uses: actions/cache@v3 + with: + path: openwrt + key: openwrt-${{ matrix.sdk_ver }}-${{ matrix.name }} + - name: Get sdk + if: steps.cache-openwrt.outputs-cache-hit != 'true' run: | wget -q ${{ matrix.sdk }} -O openwrt-sdk.tar.xz tar xf openwrt-sdk.tar.xz @@ -442,18 +450,6 @@ jobs: git fetch --force --tags working-directory: n2n - - name: Cache openwrt bin - uses: actions/cache@v3 - with: - path: openwrt/bin - key: openwrt-bin-${{ matrix.sdk_ver }}-${{ matrix.name }} - - - name: Cache openwrt build_dir - uses: actions/cache@v3 - with: - path: openwrt/build_dir - key: openwrt-build_dir-${{ matrix.sdk_ver }}-${{ matrix.name }} - - name: Copy n2n package definition into openwrt run: | cp -r n2n/packages/openwrt openwrt/package/n2n