You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB

  1. name: Test Build
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. jobs:
  7. build:
  8. name: ${{ matrix.arch }} build
  9. runs-on: ubuntu-latest
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. arch:
  14. - aarch64_generic
  15. - arc_arc700
  16. - arm_cortex-a15_neon-vfpv4
  17. - arm_cortex-a9_neon
  18. - arm_cortex-a9_vfpv3-d16
  19. - i386_pentium4
  20. - mips_24kc
  21. - powerpc_464fp
  22. - powerpc_8540
  23. - x86_64
  24. steps:
  25. - uses: actions/checkout@v2
  26. with:
  27. fetch-depth: 0
  28. - name: Determine changed packages
  29. run: |
  30. # only detect packages with changed Makefiles
  31. PACKAGES="$(git diff --diff-filter=d --name-only origin/master \
  32. | grep 'Makefile$' | grep -Ev '/files/|/src/' \
  33. | awk -F/ '{ print $(NF-1) }' | tr '\n' ' ')"
  34. # fallback to test packages if nothing explicitly changes this is
  35. # should run if other mechanics in packages.git changed
  36. PACKAGES="${PACKAGES:-vim tmux bmon}"
  37. echo "Building $PACKAGES"
  38. echo "::set-env name=PACKAGES::$PACKAGES"
  39. - name: Build
  40. uses: openwrt/gh-action-sdk@v1
  41. env:
  42. ARCH: ${{ matrix.arch }}
  43. FEEDNAME: packages_ci
  44. - name: Store packages
  45. uses: actions/upload-artifact@v2
  46. with:
  47. name: ${{ matrix.arch}}-packages
  48. path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
  49. - name: Store logs
  50. uses: actions/upload-artifact@v2
  51. with:
  52. name: ${{ matrix.arch}}-logs
  53. path: logs/