build.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Build
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. compile:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Check out repository
  10. uses: actions/checkout@v4
  11. - name: Set up Arduino CLI
  12. uses: arduino/setup-arduino-cli@v2
  13. - name: Set up Python
  14. uses: actions/setup-python@v5
  15. with:
  16. python-version: '3.x'
  17. - name: Install adafruit-nrfutil
  18. # The Adafruit nRF52 build recipe shells out to adafruit-nrfutil to
  19. # package the DFU .zip; it is not bundled with the core on the runner.
  20. run: pip install adafruit-nrfutil
  21. - name: Install Adafruit nRF52 core
  22. run: |
  23. arduino-cli config init --overwrite
  24. arduino-cli config set board_manager.additional_urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
  25. arduino-cli core update-index
  26. arduino-cli core install adafruit:nrf52
  27. - name: Compile OpenPuck
  28. run: |
  29. arduino-cli compile \
  30. -b adafruit:nrf52:feather52840 \
  31. --build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4" \
  32. OpenPuck