-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# | ||
# Copyright (c) 2024 ZettaScale Technology | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: | ||
# ZettaScale Zenoh Team, <zenoh@zettascale.tech> | ||
# | ||
name: rpi_pico_w | ||
|
||
on: | ||
push: | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
build: | ||
name: Build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: jwlawson/actions-setup-cmake@v1.13 | ||
- name: Install requirements | ||
run: | | ||
sudo apt update | ||
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential g++ libstdc++-arm-none-eabi-newlib | ||
- name: Install Raspberry Pico SDK | ||
run: | | ||
export PICO_SDK_PATH=$HOME/work/pico-sdk | ||
mkdir -p $PICO_SDK_PATH | ||
cd $PICO_SDK_PATH | ||
git clone https://github.com/raspberrypi/pico-sdk.git --branch 2.1.0 . | ||
git submodule update --init | ||
- name: Install FreeRTOS SDK | ||
run: | | ||
export FREERTOS_KERNEL_PATH=$HOME/work/FreeRTOS-Kernel/ | ||
mkdir -p $FREERTOS_KERNEL_PATH | ||
cd $FREERTOS_KERNEL_PATH | ||
git clone https://github.com/FreeRTOS/FreeRTOS-Kernel.git --branch V11.1.0 . | ||
git submodule update --init | ||
- name: Build examples | ||
run: | | ||
export PICO_SDK_PATH=$HOME/work/pico-sdk | ||
export FREERTOS_KERNEL_PATH=$HOME/work/FreeRTOS-Kernel/ | ||
cd $HOME/work/zenoh-pico/zenoh-pico/examples/rpi_pico_w | ||
cmake -Bbuild -DWIFI_SSID=wifi_network_ssid -DWIFI_PASSWORD=wifi_network_password | ||
cmake --build ./build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters