gh: test use as module #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: zephyrprojectrtos/ci:latest | |
env: | |
CMAKE_PREFIX_PATH: /opt/toolchains | |
PR_NUMBER: ${{ github.event.number }} | |
steps: | |
- name: Initialize | |
working-directory: ArduinoCore-zephyr | |
run: | | |
mkdir build && cd build | |
west init -m https://github.com/arduino/ArduinoCore-zephyr.git -o=--depth=1 -o=-b${{ github.ref }} | |
west update | |
- name: Build fade | |
working-directory: ArduinoCore-zephyr/build | |
run: | | |
west build -p -b arduino_nano_33_ble//sense modules/lib/ArduinoCore-zephyr/samples/fade | |
- name: Build i2cdemo | |
working-directory: ArduinoCore-zephyr/build | |
run: | | |
west build -p -b ek_ra8d1 ../samples/i2cdemo | |
- name: Build adc | |
working-directory: ArduinoCore-zephyr/build | |
run: | | |
west build -p -b arduino_nano_33_ble/nrf52840/sense ../samples/analog_input |