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.

64 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. - arc_archs
  17. - arm_cortex-a15_neon-vfpv4
  18. - arm_cortex-a9_neon
  19. - arm_cortex-a9_vfpv3-d16
  20. - i386_pentium4
  21. - mips_24kc
  22. - powerpc_464fp
  23. - powerpc_8540
  24. - x86_64
  25. steps:
  26. - uses: actions/checkout@v2
  27. with:
  28. fetch-depth: 0
  29. - name: Determine changed packages
  30. run: |
  31. # only detect packages with changed Makefiles
  32. PACKAGES="$(git diff --diff-filter=d --name-only origin/master \
  33. | grep 'Makefile$' | grep -Ev '/files/|/src/' \
  34. | awk -F/ '{ print $(NF-1) }' | tr '\n' ' ')"
  35. # fallback to test packages if nothing explicitly changes this is
  36. # should run if other mechanics in packages.git changed
  37. PACKAGES="${PACKAGES:-vim tmux bmon}"
  38. echo "Building $PACKAGES"
  39. echo "::set-env name=PACKAGES::$PACKAGES"
  40. - name: Build
  41. uses: openwrt/gh-action-sdk@v1
  42. env:
  43. ARCH: ${{ matrix.arch }}
  44. FEEDNAME: packages_ci
  45. - name: Store packages
  46. uses: actions/upload-artifact@v2
  47. with:
  48. name: ${{ matrix.arch}}-packages
  49. path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
  50. - name: Store logs
  51. uses: actions/upload-artifact@v2
  52. with:
  53. name: ${{ matrix.arch}}-logs
  54. path: logs/