build: the proper way

This commit is contained in:
John Doe
2021-03-29 15:44:13 +08:00
parent 8afc1155e5
commit d4d79d2187
3 changed files with 4 additions and 11 deletions

View File

@@ -92,16 +92,10 @@ jobs:
run: |
cd ~/lede
cat $GITHUB_WORKSPACE/extra_packages.seed >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo CONFIG_PACKAGE_{}=y >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo CONFIG_PACKAGE_{}=m >> .config
make defconfig && cat .config
while true; do make download -j && break || true; done
make tools/compile -j$[`nproc`+1]
make toolchain/compile -j$[`nproc`+1]
make target/linux/compile -j$[`nproc`+1]
make package/compile -j$[`nproc`+1] IGNORE_ERRORS=y
make package/index
sed -i "s/\-[a-z0-9]\{32\})/)/" bin/targets/*/*/packages/Packages bin/targets/*/*/packages/Packages.manifest
gzip -f bin/targets/*/*/packages/Packages
make -j$[`nproc`+1] IGNORE_ERRORS=1
cat $GITHUB_WORKSPACE/$DEVICE.config.seed | sed '/CONFIG_PACKAGE_luci-app-/d' > .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo "# CONFIG_PACKAGE_{} is not set" >> .config