8
8
container : zephyrprojectrtos/ci:latest
9
9
env :
10
10
CMAKE_PREFIX_PATH : /opt/toolchains
11
+ PR_NUMBER : ${{ github.event.number }}
11
12
steps :
12
- - name : Checkout
13
- uses : actions/checkout@v4
14
- with :
15
- path : ArduinoCore-zephyr
16
-
17
13
- name : Initialize
18
- working-directory : ArduinoCore-zephyr
19
14
run : |
20
15
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 -
22
20
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
27
21
28
22
- name : Build fade
29
- working-directory : ArduinoCore-zephyr/ build
23
+ working-directory : build
30
24
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
32
26
33
27
- name : Build i2cdemo
34
- working-directory : ArduinoCore-zephyr/ build
28
+ working-directory : build
35
29
run : |
36
- west build -p -b ek_ra8d1 .. /samples/i2cdemo
30
+ west build -p -b ek_ra8d1 modules/lib/ArduinoCore-zephyr /samples/i2cdemo
37
31
38
32
- name : Build adc
39
- working-directory : ArduinoCore-zephyr/ build
33
+ working-directory : build
40
34
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