forked from andrey/raspberry-pi-pico-docker-sdk
Add Github CI configuration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user