build: inject luci feed

This commit is contained in:
John Doe
2021-03-24 17:58:34 +08:00
parent f6ab9f956d
commit 4ff863e766
2 changed files with 7 additions and 6 deletions

View File

@@ -70,8 +70,6 @@ jobs:
run: |
cd ~/lede
cat $GITHUB_WORKSPACE/$DEVICE.config.seed | sed '/CONFIG_PACKAGE_luci-app-/d' > .config
echo >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo "# CONFIG_PACKAGE_{} is not set" >> .config
- name: Build and deploy packages
run: |
@@ -96,7 +94,8 @@ jobs:
sed -i '/\(tools\|toolchain\)\/Makefile/d' Makefile
echo -e '# CONFIG_SIGNED_PACKAGES is not set\n' >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | sort | 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_{}=y >> .config
find feeds/luci/applications -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo CONFIG_PACKAGE_{}=y >> .config
make defconfig && cat .config
while true; do make download -j && break || true; done
make target/linux/compile -j$(($(nproc) + 1))
@@ -108,13 +107,15 @@ jobs:
cat $GITHUB_WORKSPACE/$DEVICE.config.seed | sed '/CONFIG_PACKAGE_luci-app-/d' > .config
echo -e '# CONFIG_SIGNED_PACKAGES is not set\n' >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo "# CONFIG_PACKAGE_{} is not set" >> .config
find feeds/luci/applications -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo "# CONFIG_PACKAGE_{} is not set" >> .config
make defconfig
mkdir -p files/local_feed/core files/local_feed/base
mkdir -p files/local_feed/core files/local_feed/base files/local_feed/luci
sudo mount --bind bin/targets/*/*/packages/ files/local_feed/core
sudo mount --bind bin/packages/*/base/ files/local_feed/base
sudo mount --bind bin/packages/*/luci/ files/local_feed/luci
pushd bin/ && . ../files/etc/opkg/distfeeds.conf | tee ../files/etc/opkg/distfeeds.conf && popd
make -j$(($(nproc) + 1))
sudo umount files/local_feed/core files/local_feed/base
sudo umount files/local_feed/core files/local_feed/base files/local_feed/luci
rm files/etc/opkg/distfeeds.conf
echo "======================="

View File

@@ -1,6 +1,6 @@
echo src/gz immortalwrt_core file:///local_feed/core
echo src/gz immortalwrt_base file:///local_feed/base
echo src/gz immortalwrt_luci file:///local_feed/luci
echo src/gz immortalwrt_packages https://mirrors.tencent.com/lede/snapshots/$(ls -d packages/*/packages)
echo src/gz immortalwrt_luci https://mirrors.tencent.com/lede/releases/18.06.9/$(ls -d packages/*/luci)
echo src/gz immortalwrt_routing https://mirrors.tencent.com/lede/releases/18.06.9/$(ls -d packages/*/routing)
echo src/gz immortalwrt_telephony https://mirrors.tencent.com/lede/releases/18.06.9/$(ls -d packages/*/telephony)