zephyr-build.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Zephyr Build
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - zephyr-migration
  7. pull_request:
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. container:
  12. image: ghcr.io/zephyrproject-rtos/ci:latest
  13. env:
  14. CMAKE_PREFIX_PATH: /opt/toolchains
  15. steps:
  16. - name: Check out repository
  17. uses: actions/checkout@v4
  18. with:
  19. path: openpuck
  20. - name: Initialize Zephyr workspace
  21. run: |
  22. # Freestanding app: pull mainline Zephyr into a sibling workspace.
  23. west init zephyrproject --mr main
  24. cd zephyrproject && west update --narrow -o=--depth=1
  25. west zephyr-export
  26. - name: Build (adafruit_feather_nrf52840/nrf52840/uf2)
  27. run: |
  28. cd zephyrproject
  29. west build -b adafruit_feather_nrf52840/nrf52840/uf2 \
  30. -p always ../openpuck/OpenPuckZephyr
  31. - name: Upload UF2
  32. uses: actions/upload-artifact@v4
  33. with:
  34. name: openpuck-zephyr-uf2
  35. path: zephyrproject/build/zephyr/zephyr.uf2
  36. if-no-files-found: warn