Skip to content

Commit 1a3f21f

Browse files
committed
follow the example hello world
Signed-off-by: Dhruva Gole <[email protected]>
1 parent 3538c54 commit 1a3f21f

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

.github/workflows/build.yml

+20-13
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,35 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
container: zephyrprojectrtos/ci:latest
9-
env:
10-
CMAKE_PREFIX_PATH: /opt/toolchains
118
steps:
129
- name: Checkout
13-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1411
with:
1512
path: Arduino-Zephyr-API
1613

14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: 3.11
18+
19+
- name: Setup Zephyr project
20+
uses: zephyrproject-rtos/action-zephyr-setup@v1
21+
with:
22+
app-path: Arduino-Zephyr-API
23+
toolchains: arm-zephyr-eabi
24+
1725
- name: Initialize
1826
working-directory: Arduino-Zephyr-API
1927
run: |
20-
west init -m https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core.git
21-
west update
2228
git clone https://github.com/arduino/ArduinoCore-API.git ArduinoCore-API
23-
cp -r ArduinoCore-API/api modules/lib/Arduino-Zephyr-API/cores/arduino/.
29+
ls -la
30+
tree .
31+
cp -r ArduinoCore-API/api cores/arduino/.
32+
33+
- name: Build adc
34+
working-directory: Arduino-Zephyr-API
35+
run: |
36+
west build -p -b beagleconnect_freedom samples/analog_input
2437
2538
- name: Build fade
2639
working-directory: Arduino-Zephyr-API
@@ -31,12 +44,6 @@ jobs:
3144
working-directory: Arduino-Zephyr-API
3245
run: |
3346
west build -p -b arduino_nano_33_ble_sense samples/i2cdemo
34-
35-
- name: Build adc
36-
working-directory: Arduino-Zephyr-API
37-
run: |
38-
west build -p -b beagleconnect_freedom samples/analog_input
39-
4047
- name: Archive firmware
4148
uses: actions/upload-artifact@v2
4249
with:

0 commit comments

Comments
 (0)