Browse Source

Give up and cache the entire openwrt buildchain

pull/1076/head
Hamish Coleman 2 years ago
parent
commit
9618512c8f
  1. 20
      .github/workflows/tests.yml

20
.github/workflows/tests.yml

@ -424,7 +424,15 @@ jobs:
working-directory: openwrt working-directory: openwrt
steps: 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 - name: Get sdk
if: steps.cache-openwrt.outputs-cache-hit != 'true'
run: | run: |
wget -q ${{ matrix.sdk }} -O openwrt-sdk.tar.xz wget -q ${{ matrix.sdk }} -O openwrt-sdk.tar.xz
tar xf openwrt-sdk.tar.xz tar xf openwrt-sdk.tar.xz
@ -442,18 +450,6 @@ jobs:
git fetch --force --tags git fetch --force --tags
working-directory: n2n 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 - name: Copy n2n package definition into openwrt
run: | run: |
cp -r n2n/packages/openwrt openwrt/package/n2n cp -r n2n/packages/openwrt openwrt/package/n2n

Loading…
Cancel
Save