Use caching to try to speed up openwrt builds. Build openwrt statically

This commit is contained in:
Hamish Coleman 2023-01-30 10:52:25 +00:00
parent c824c5d2cd
commit 731be7e257
2 changed files with 10 additions and 1 deletions

View File

@ -415,10 +415,13 @@ jobs:
matrix: matrix:
include: include:
- name: mips_24kc - name: mips_24kc
sdk_ver: 22.03.3
sdk: https://downloads.openwrt.org/releases/22.03.3/targets/lantiq/xrx200/openwrt-sdk-22.03.3-lantiq-xrx200_gcc-11.2.0_musl.Linux-x86_64.tar.xz sdk: https://downloads.openwrt.org/releases/22.03.3/targets/lantiq/xrx200/openwrt-sdk-22.03.3-lantiq-xrx200_gcc-11.2.0_musl.Linux-x86_64.tar.xz
- name: i386_pentium4 - name: i386_pentium4
sdk_ver: 22.03.3
sdk: https://downloads.openwrt.org/releases/22.03.3/targets/x86/generic/openwrt-sdk-22.03.3-x86-generic_gcc-11.2.0_musl.Linux-x86_64.tar.xz sdk: https://downloads.openwrt.org/releases/22.03.3/targets/x86/generic/openwrt-sdk-22.03.3-x86-generic_gcc-11.2.0_musl.Linux-x86_64.tar.xz
- name: x86_64 - name: x86_64
sdk_ver: 22.03.3
sdk: https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/openwrt-sdk-22.03.3-x86-64_gcc-11.2.0_musl.Linux-x86_64.tar.xz sdk: https://downloads.openwrt.org/releases/22.03.3/targets/x86/64/openwrt-sdk-22.03.3-x86-64_gcc-11.2.0_musl.Linux-x86_64.tar.xz
defaults: defaults:
@ -444,6 +447,12 @@ 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: bin
key: openwrt-bin-${{ matrix.sdk_ver }}
- 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

View File

@ -67,7 +67,7 @@ endef
define Build/Configure define Build/Configure
( cd $(PKG_BUILD_DIR); \ ( cd $(PKG_BUILD_DIR); \
./autogen.sh; \ ./autogen.sh; \
./configure ) LDFLAGS=--static ./configure )
endef endef
define Package/n2n-edge/conffiles define Package/n2n-edge/conffiles