aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2021-03-22 14:10:36 -1000
committerPaul Spooren <mail@aparcar.org>2021-03-23 07:23:53 -1000
commitc0d0c64f6ca1cbed2586812cad9d7da7b6e5e542 (patch)
treec5f35910a08a869f476be4f1e35ad0e7f01ea235
parent81f7461e66c877a9d1f6c751fd92252e950370c3 (diff)
CI: test build dependent packages
By using OPKGs `whatdepends` all packages dependent on a library are printed. Use that feature to obtain packages which a version change may break and build them as well. Change "default" packages to contain a lib on which other packages depend, instead of compiling `tmux` compile `attendedsysupgrade-common` on which other packages depend. Ignore any LuCI packages which only contains translations. Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--.github/workflows/multi-arch-test-build.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml
index 4106f00c8..f7c6da7c4 100644
--- a/.github/workflows/multi-arch-test-build.yml
+++ b/.github/workflows/multi-arch-test-build.yml
@@ -77,11 +77,21 @@ jobs:
# fallback to test packages if nothing explicitly changes this is
# should run if other mechanics in packages.git changed
- PACKAGES="${PACKAGES:-vim tmux bmon}"
+ PACKAGES="${PACKAGES:-vim attendedsysupgrade-common bmon}"
echo "Building $PACKAGES"
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
+ - name: Determine depended packages
+ run: |
+ DEPENDS=$(docker run --rm \
+ "openwrt/imagebuilder:${{ matrix.target }}-$BRANCH" \
+ make whatdepends PACKAGE="$PACKAGES" | grep $'\t' | \
+ grep -v luci-i18n | awk '{ print $1 }' | tr '\n' ' ')
+
+ echo "Building $DEPENDS"
+ echo "PACKAGES=$PACKAGES $DEPENDS" >> $GITHUB_ENV
+
- name: Build
uses: openwrt/gh-action-sdk@v1
env: