forked from zephyrproject-rtos/ArduinoCore-zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.99 KB
/
build.yml
File metadata and controls
67 lines (55 loc) · 1.99 KB
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
58
59
60
61
62
63
64
65
66
67
name: Build
on: [push, pull_request]
jobs:
build:
name: Build Arduino-API Zephyr samples
runs-on: ubuntu-latest
container: zephyrprojectrtos/ci-base:latest
env:
CMAKE_PREFIX_PATH: /opt/toolchains
CCACHE_IGNOREOPTIONS: -specs=*
MODULE_PATH: ../modules/lib/Arduino-Zephyr-API
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
path: subfolder
- name: Fix module path, list needed HALs
run: |
mkdir -p $(dirname $MODULE_PATH) && mv subfolder $MODULE_PATH
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
toolchains: arm-zephyr-eabi
manifest-file-name: ${{ env.MODULE_PATH }}/west.yml
enable-ccache: false
- name: Add manifest path as module
run: |
echo EXTRA_ZEPHYR_MODULES="$(pwd)/$MODULE_PATH" >> $GITHUB_ENV
- name: Initialize
run: |
west blobs --auto-accept fetch arduinocore-zephyr
- name: Setup Rust toolchain
run: |
wget https://sh.rustup.rs
mv index.html rustup_install.sh
bash rustup_install.sh -y
/root/.cargo/bin/rustup default stable
/root/.cargo/bin/rustup target add thumbv6m-none-eabi thumbv7em-none-eabihf thumbv7em-none-eabi thumbv7m-none-eabi
echo "/root/.cargo/bin" >> $GITHUB_PATH
- name: Build fade
run: |
west build -p -b arduino_nano_33_ble/nrf52840/sense $MODULE_PATH/samples/fade
- name: Build i2cdemo
run: |
west build -p -b arduino_nano_33_ble/nrf52840/sense $MODULE_PATH/samples/i2cdemo
- name: Build adc
run: |
west build -p -b beagleconnect_freedom/cc1352p7 $MODULE_PATH/samples/analog_input
- name: Archive firmware
uses: actions/upload-artifact@v4
with:
name: firmware
path: Arduino-Zephyr-API/build/zephyr/zephyr.*