-
Notifications
You must be signed in to change notification settings - Fork 25
57 lines (48 loc) · 1.45 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: Arduino-Zephyr-API
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: Arduino-Zephyr-API
toolchains: arm-zephyr-eabi
- name: Initialize
working-directory: Arduino-Zephyr-API
run: |
pwd
echo now ls 1
ls ../
echo now ls 2
ls ../../
git clone https://github.com/arduino/ArduinoCore-API.git ArduinoCore-API
ls -la
tree .
cp -r ArduinoCore-API/api cores/arduino/.
- name: Build adc
working-directory: Arduino-Zephyr-API
run: |
west build -p -b beagleconnect_freedom samples/analog_input
- name: Build fade
working-directory: Arduino-Zephyr-API
run: |
west build -p -b arduino_nano_33_ble_sense samples/fade
- name: Build i2cdemo
working-directory: Arduino-Zephyr-API
run: |
west build -p -b arduino_nano_33_ble_sense samples/i2cdemo
- name: Archive firmware
uses: actions/upload-artifact@v2
with:
name: firmware
path: Arduino-Zephyr-API/build/zephyr/zephyr.*