CI: fix compilation of all packages
authorPaul Spooren <mail@aparcar.org>
Mon, 7 Sep 2020 21:17:58 +0000 (11:17 -1000)
committerPaul Spooren <mail@aparcar.org>
Tue, 8 Sep 2020 21:02:27 +0000 (11:02 -1000)
By using `feeds install -d y` the CI tries to install e.g. `libcxx`
which fails, unrelated to the tested packages. Now follow the approach
of the current CircleCI implementation.

Signed-off-by: Paul Spooren <mail@aparcar.org>
.github/workflows/multi-arch-test-build.yml

index 628dd9ea8ad5c8f89dde27e17a1b5c9bb8b44641..3afafbe60b3fb4c3261d799ebe044ff17251186c 100644 (file)
@@ -31,22 +31,23 @@ jobs:
 
       - name: Determine changed packages
         run: |
+          # only detect packages with changed Makefiles
           PACKAGES="$(git diff --diff-filter=d --name-only origin/master \
             | grep 'Makefile$' | grep -Ev '/files/|/src/' \
             | awk -F/ '{ print $(NF-1) }' | tr '\n' ' ')"
 
-          echo "Building $PACKAGES"
+          # fallback to test packages if nothing explicitly changes this is
+          # should run if other mechanics in packages.git changed
+          PACKAGES="${PACKAGES:-vim tmux bmon}"
 
+          echo "Building $PACKAGES"
           echo "::set-env name=PACKAGES::$PACKAGES"
 
       - name: Build
         uses: openwrt/gh-action-sdk@v1
         env:
           ARCH: ${{ matrix.arch }}
-          BUILD_LOG: 1
           FEEDNAME: packages_ci
-          IGNORE_ERRORS: ""
-          V: s
 
       - name: Store packages
         uses: actions/upload-artifact@v2