9 Commits
ci ... release

Author SHA1 Message Date
50c183b45b fix picotool install
All checks were successful
SHS Gitea/raspberry-pi-pico-docker-sdk/pipeline/head This commit looks good
2025-04-22 11:29:40 +03:00
8a5859f324 add g++
All checks were successful
SHS Gitea/raspberry-pi-pico-docker-sdk/pipeline/head This commit looks good
2025-04-22 11:19:08 +03:00
b0b3ad9c9f Update alpine version
All checks were successful
SHS Gitea/raspberry-pi-pico-docker-sdk/pipeline/head This commit looks good
2025-04-22 10:59:53 +03:00
5f5b0d262b Merge pull request 'Update pico sdk to 2.1.1' (#1) from main into release
Some checks failed
SHS Gitea/raspberry-pi-pico-docker-sdk/pipeline/head There was a failure building this commit
Reviewed-on: #1
2025-04-22 10:49:32 +03:00
dae1fa9771 Update pico sdk to 2.1.1 2025-04-22 10:47:24 +03:00
9d57df6c8b add Jenkinsfile
All checks were successful
SHS Gitea/raspberry-pi-pico-docker-sdk/pipeline/head This commit looks good
2024-02-04 21:42:25 +03:00
lukstep
3d8b06e9b7 Specify the C and C++ compiler path 2023-07-23 12:57:49 +02:00
Łukasz
ee42c6f1df Update CI status badge 2023-06-25 15:47:23 +02:00
lukstep
ecea0809ad Add Github CI configuration 2023-06-25 15:42:16 +02:00
6 changed files with 78 additions and 8 deletions

47
.github/workflows/sdk-ci.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: Raspberry PI Pico Docker SDK CI
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types: [published]
env:
TEST_TAG: pico_test_sdk
jobs:
sdk_container:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build SDK
uses: docker/build-push-action@v4
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
- name: Test SDK
run: bash ./test_sdk.sh ${{ env.TEST_TAG }}
- name: Log into Docker Hub
uses: docker/login-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Extract SDK metadata
id: meta
uses: docker/metadata-action@v4
with:
images: lukstep/raspberry-pi-pico-sdk
- name: Push SDK image
if: github.event_name == 'release' && github.event.action == 'published'
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1,4 +1,4 @@
FROM alpine:3.17.0
FROM alpine:3.21.3
# Install toolchain
RUN apk update && \
@@ -11,22 +11,24 @@ RUN apk update && \
libusb-dev \
bsd-compat-headers \
newlib-arm-none-eabi \
gcc-arm-none-eabi
gcc-arm-none-eabi \
g++-arm-none-eabi \
linux-headers
# Raspberry Pi Pico SDK
ARG SDK_PATH=/usr/share/pico_sdk
RUN git clone --depth 1 --branch 1.5.1 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
RUN git clone --depth 1 --branch 2.1.1 --single-branch https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
cd $SDK_PATH && \
git submodule update --init
ENV PICO_SDK_PATH=$SDK_PATH
# Picotool installation
RUN git clone --depth 1 --branch 1.1.2 https://github.com/raspberrypi/picotool.git /home/picotool && \
RUN git clone --depth 1 --branch 2.1.1 --single-branch https://github.com/raspberrypi/picotool.git /home/picotool && \
cd /home/picotool && \
mkdir build && \
cd build && \
cmake .. && \
make && \
cp /home/picotool/build/picotool /bin/picotool && \
make -j$(nproc) && \
cmake --install . && \
rm -rf /home/picotool

13
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,13 @@
node {
stage("Download SRC") {
checkout scm
}
stage("Docker build") {
docker.build("${env.DOCKER_PREFIX}/picosdk", ".")
}
stage("docker prune") {
sh 'docker system prune -f'
}
}

View File

@@ -1,3 +1,5 @@
[![Raspberry PI Pico Docker SDK CI](https://github.com/lukstep/raspberry-pi-pico-docker-sdk/actions/workflows/sdk-ci.yml/badge.svg)](https://github.com/lukstep/raspberry-pi-pico-docker-sdk/actions/workflows/sdk-ci.yml)
# Raspberry Pi Pico Docker SDK
Lightweight Raspberry Pi Pico C++ SDK container.

View File

@@ -4,6 +4,9 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(sample C CXX ASM)
set(CMAKE_C_COMPILER /usr/bin/arm-none-eabi-gcc CACHE PATH "" FORCE)
set(CMAKE_CXX_COMPILER /usr/bin/arm-none-eabi-g++ CACHE PATH "" FORCE)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

View File

@@ -1,5 +1,8 @@
docker build . --tag lukstep/raspberry-pi-pico-sdk:latest
docker run -d -it --name pico-sdk --mount type=bind,source=${PWD}/test_poject,target=/home/dev lukstep/raspberry-pi-pico-sdk:latest
if [[ -z $1 ]]; then
echo "Please provide an SDK image you want to test"
fi
docker run -d -it --name pico-sdk --mount type=bind,source=${PWD}/test_poject,target=/home/dev $1
docker exec pico-sdk /bin/sh -c "cd /home/dev && mkdir build && cd build && cmake .. && make -j4"
docker exec pico-sdk /bin/sh -c "picotool"
docker container kill pico-sdk