arch.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Build and run tests on different architectures
  2. # \thanks https://github.com/uraimo/run-on-arch-action
  3. name: arch
  4. on:
  5. push:
  6. branches: arch
  7. pull_request:
  8. branches: arch
  9. jobs:
  10. build:
  11. name: Build and test
  12. runs-on: ubuntu-latest
  13. strategy:
  14. matrix:
  15. include:
  16. - arch: aarch64
  17. distro: ubuntu_latest
  18. BASH_PLATFORM: BASH_NEON
  19. - arch: s390x
  20. distro: ubuntu_latest
  21. BASH_PLATFORM: BASH_64
  22. steps:
  23. - name: Get source
  24. uses: actions/checkout@v3
  25. - name: Build and run
  26. uses: uraimo/run-on-arch-action@v2
  27. with:
  28. arch: ${{matrix.arch}}
  29. distro: ${{matrix.distro}}
  30. # this speeds up builds
  31. githubToken: ${{github.token}}
  32. install: |
  33. apt-get update -q -y
  34. apt-get install -q -y cmake
  35. run: |
  36. cmake -B ${{github.workspace}}/build \
  37. -DBASH_PLATFORM=${{matrix.BASH_PLATFORM}}
  38. cmake --build ${{github.workspace}}/build
  39. cd ${{github.workspace}}/build
  40. ./test/testbee2