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+ cd -
2220 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
2721
2822 - name : Build fade
29- working-directory : ArduinoCore-zephyr/ build
23+ working-directory : build
3024 run : |
31- west build -p -b arduino_nano_33_ble//sense .. /samples/fade
25+ west build -p -b arduino_nano_33_ble//sense modules/lib/ArduinoCore-zephyr /samples/fade
3226
3327 - name : Build i2cdemo
34- working-directory : ArduinoCore-zephyr/ build
28+ working-directory : build
3529 run : |
36- west build -p -b ek_ra8d1 .. /samples/i2cdemo
30+ west build -p -b ek_ra8d1 modules/lib/ArduinoCore-zephyr /samples/i2cdemo
3731
3832 - name : Build adc
39- working-directory : ArduinoCore-zephyr/ build
33+ working-directory : build
4034 run : |
41- west build -p -b arduino_nano_33_ble//sense .. /samples/analog_input
35+ west build -p -b arduino_nano_33_ble/nrf52840 /sense modules/lib/ArduinoCore-zephyr /samples/analog_input
0 commit comments