test_build.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Test Build
  2. on: [push, pull_request, workflow_dispatch]
  3. concurrency:
  4. group: ci-${{github.workflow}}-${{ github.ref }}
  5. cancel-in-progress: true
  6. jobs:
  7. build:
  8. runs-on: ubuntu-22.04
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. submodules: 'recursive'
  13. - name: Setup ESP32
  14. env:
  15. HOME: ${{ runner.workspace }}/ArduRemoteID
  16. run: |
  17. PATH="$HOME/.local/bin:$PATH"
  18. ./scripts/install_build_env.sh
  19. ./scripts/add_libraries.sh
  20. - name: Build
  21. env:
  22. HOME: ${{ runner.workspace }}/ArduRemoteID
  23. run: |
  24. cd RemoteIDModule
  25. make setup
  26. make all
  27. - name: Check build files
  28. id: check_files
  29. uses: andstor/file-existence-action@v1
  30. with:
  31. files: RemoteIDModule/ArduRemoteID*.bin
  32. allow_failure: true
  33. - name: Archive build
  34. uses: actions/upload-artifact@v4
  35. with:
  36. name: binaries
  37. path: RemoteIDModule/ArduRemoteID*.bin
  38. retention-days: 7