Skip to content

Commit 25803a4

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

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/build.yml

+20-10
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,37 @@ 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: |
2028
west init -m https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core.git
2129
west update
2230
git clone https://github.com/arduino/ArduinoCore-API.git ArduinoCore-API
23-
cp -r ArduinoCore-API/api modules/lib/Arduino-Zephyr-API/cores/arduino/.
31+
ls -la
32+
tree .
33+
cp -r ArduinoCore-API/api cores/arduino/.
34+
35+
- name: Build adc
36+
working-directory: Arduino-Zephyr-API
37+
run: |
38+
west build -p -b beagleconnect_freedom samples/analog_input
2439
2540
- name: Build fade
2641
working-directory: Arduino-Zephyr-API
@@ -32,11 +47,6 @@ jobs:
3247
run: |
3348
west build -p -b arduino_nano_33_ble_sense samples/i2cdemo
3449
35-
- name: Build adc
36-
working-directory: Arduino-Zephyr-API
37-
run: |
38-
west build -p -b beagleconnect_freedom samples/analog_input
39-
4050
- name: Archive firmware
4151
uses: actions/upload-artifact@v2
4252
with:

0 commit comments

Comments
 (0)