test_build.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/regen_headers.sh
  20. ./scripts/add_libraries.sh
  21. - name: Build
  22. env:
  23. HOME: ${{ runner.workspace }}/ArduRemoteID
  24. run: |
  25. cd RemoteIDModule
  26. make setup
  27. make all
  28. - name: Check build files
  29. id: check_files
  30. uses: andstor/file-existence-action@v1
  31. with:
  32. files: "RemoteIDModule/build/esp32.esp32.esp32s3/ArduRemoteID.bin"
  33. allow_failure: true
  34. - name: Archive build
  35. uses: actions/upload-artifact@v2
  36. with:
  37. name: binaries
  38. path: RemoteIDModule/build
  39. retention-days: 7