Add Github CI configuration

This commit is contained in:
lukstep
2023-06-25 12:16:06 +02:00
parent 17a8f90fef
commit 1fcde7be27
3 changed files with 54 additions and 2 deletions

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