- 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