88 container : zephyrprojectrtos/ci:latest
99 env :
1010 CMAKE_PREFIX_PATH : /opt/toolchains
11+ PR_NUMBER : ${{ github.event.number }}
1112 steps :
12- - name : Checkout
13- uses : actions/checkout@v4
14- with :
15- path : ArduinoCore-zephyr
16-
1713 - name : Initialize
18- working-directory : ArduinoCore-zephyr
1914 run : |
2015 mkdir build && cd build
21- west init -m https://github.com/arduino/ArduinoCore-zephyr.git
16+ west init -m https://github.com/${{ github.repository }}
17+ cd modules/lib/ArduinoCore-zephyr/
18+ git fetch origin ${{ github.ref }}
19+ git checkout FETCH_HEAD
20+ cd -
2221 west update
23- rm -rf modules/lib/ArduinoCore-zephyr/*
24- cp -r ../* modules/lib/ArduinoCore-zephyr || true
25- rm modules/lib/ArduinoCore-zephyr/cores/arduino/api
26- cp -r modules/lib/ArduinoCore-API/api modules/lib/ArduinoCore-zephyr/cores/arduino/api
2722
2823 - name : Build fade
29- working-directory : ArduinoCore-zephyr/ build
24+ working-directory : build
3025 run : |
31- west build -p -b arduino_nano_33_ble//sense .. /samples/fade
26+ west build -p -b arduino_nano_33_ble//sense modules/lib/ArduinoCore-zephyr /samples/fade
3227
3328 - name : Build i2cdemo
34- working-directory : ArduinoCore-zephyr/ build
29+ working-directory : build
3530 run : |
36- west build -p -b ek_ra8d1 .. /samples/i2cdemo
31+ west build -p -b ek_ra8d1 modules/lib/ArduinoCore-zephyr /samples/i2cdemo
3732
3833 - name : Build adc
39- working-directory : ArduinoCore-zephyr/ build
34+ working-directory : build
4035 run : |
41- west build -p -b arduino_nano_33_ble//sense .. /samples/analog_input
36+ west build -p -b arduino_nano_33_ble/nrf52840 /sense modules/lib/ArduinoCore-zephyr /samples/analog_input
0 commit comments