| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: Build
- on:
- push:
- pull_request:
- jobs:
- compile:
- runs-on: ubuntu-latest
- steps:
- - name: Check out repository
- uses: actions/checkout@v4
- - name: Set up Arduino CLI
- uses: arduino/setup-arduino-cli@v2
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: '3.x'
- - name: Install adafruit-nrfutil
- # The Adafruit nRF52 build recipe shells out to adafruit-nrfutil to
- # package the DFU .zip; it is not bundled with the core on the runner.
- run: pip install adafruit-nrfutil
- - name: Install Adafruit nRF52 core
- run: |
- arduino-cli config init --overwrite
- arduino-cli config set board_manager.additional_urls https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
- arduino-cli core update-index
- arduino-cli core install adafruit:nrf52
- - name: Compile OpenPuck
- run: |
- arduino-cli compile \
- -b adafruit:nrf52:feather52840 \
- --build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4" \
- OpenPuck
|