Skip to content

Commit

Permalink
Add pico CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Oct 25, 2024
1 parent 933d5e1 commit 387e66a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/actions/pico/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Install and build Zephyr dependencies
description: Install and build Zephyr dependencies
runs:
using: "composite"
steps:
- name: Install packages
run: |
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y --no-install-recommends git cmake tar buil-essentials \
gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
shell: bash
- name: Install pico-sdk
run: |
git clone https://github.com/raspberrypi/pico-sdk /opt/pico-sdk
echo "PICO_SDK_PATH=/opt/pico-sdk" >> $GITHUB_ENV
shell: bash
22 changes: 22 additions & 0 deletions .github/workflows/pico.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Pico examples

on:
pull_request:

jobs:
ci:
name: Build Pico examples
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
uses: ./.github/actions/zephyr
- name: Build examples
run: |
cd examples/pico
cmake -Bbuild && cd build
make

0 comments on commit 387e66a

Please sign in to comment.