Skip to content

Commit eaa50d6

Browse files
committed
Add CI build test
1 parent 544eeaa commit eaa50d6

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.github/workflows/rpi_pico_w.yaml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#
2+
# Copyright (c) 2024 ZettaScale Technology
3+
#
4+
# This program and the accompanying materials are made available under the
5+
# terms of the Eclipse Public License 2.0 which is available at
6+
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
7+
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
8+
#
9+
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
10+
#
11+
# Contributors:
12+
# ZettaScale Zenoh Team, <[email protected]>
13+
#
14+
name: rpi_pico_w
15+
16+
on:
17+
push:
18+
branches: [ '**' ]
19+
pull_request:
20+
branches: [ '**' ]
21+
22+
jobs:
23+
build:
24+
name: Build on ${{ matrix.os }}
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
os: [ubuntu-latest]
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: jwlawson/[email protected]
33+
- name: Install requirements
34+
run: |
35+
sudo apt update
36+
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential g++ libstdc++-arm-none-eabi-newlib
37+
38+
- name: Install Raspberry Pico SDK
39+
run: |
40+
export PICO_SDK_PATH=$HOME/work/pico-sdk
41+
mkdir -p $PICO_SDK_PATH
42+
cd $PICO_SDK_PATH
43+
git clone https://github.com/raspberrypi/pico-sdk.git --branch 2.1.0 .
44+
git submodule update --init
45+
46+
- name: Install FreeRTOS SDK
47+
run: |
48+
export FREERTOS_KERNEL_PATH=$HOME/work/FreeRTOS-Kernel/
49+
mkdir -p $FREERTOS_KERNEL_PATH
50+
cd $FREERTOS_KERNEL_PATH
51+
git clone https://github.com/FreeRTOS/FreeRTOS-Kernel.git --branch V11.1.0 .
52+
git submodule update --init
53+
54+
- name: Build examples
55+
run: |
56+
cd $HOME/work/zenoh-pico/zenoh-pico/examples/rpi_pico_w
57+
cmake -Bbuild -DWIFI_SSID=wifi_network_ssid -DWIFI_PASSWORD=wifi_network_password
58+
cmake --build ./build

examples/rpi_pico_w/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ function(add_example name)
9292
${CMAKE_CURRENT_LIST_DIR}/include
9393
)
9494
pico_enable_stdio_usb(${name} 1)
95-
pico_enable_stdio_uart(${name} 1)
9695
pico_add_extra_outputs(${name})
9796
endfunction()
9897

0 commit comments

Comments
 (0)