1 Commits
release ... ci

Author SHA1 Message Date
lukstep
1fcde7be27 Add Github CI configuration 2023-06-25 15:39:11 +02:00
4 changed files with 7 additions and 25 deletions

View File

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

13
Jenkinsfile vendored
View File

@@ -1,13 +0,0 @@
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,4 +1,4 @@
[![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 CI](https://github.com/lukstep/raspberry-pi-pico-docker-sdk/actions/workflows/sdk-ci.yml/badge.svg?branch=main)](https://github.com/lukstep/raspberry-pi-pico-docker-sdk/actions/workflows/sdk-ci.yml)
# Raspberry Pi Pico Docker SDK

View File

@@ -4,9 +4,6 @@ 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)