gh: core-as-lib: also compile cpp files in api folder #46
This file contains 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 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: ArduinoCore-zephyr | |
- name: Initialize | |
working-directory: ArduinoCore-zephyr | |
run: | | |
mkdir build && cd build | |
west init -m https://github.com/arduino/ArduinoCore-zephyr.git | |
west update | |
rm -rf modules/lib/ArduinoCore-zephyr/* | |
cp -r ../* modules/lib/ArduinoCore-zephyr || true | |
rm modules/lib/ArduinoCore-zephyr/cores/arduino/api | |
cp -r modules/lib/ArduinoCore-API/api modules/lib/ArduinoCore-zephyr/cores/arduino/api | |
- name: Build fade | |
working-directory: ArduinoCore-zephyr/build | |
run: | | |
west build -p -b arduino_nano_33_ble//sense ../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//sense ../samples/analog_input |