diff --git a/.gitea/build.sh b/.gitea/build.sh index 8db2925..681def0 100755 --- a/.gitea/build.sh +++ b/.gitea/build.sh @@ -9,15 +9,18 @@ log () { # Make sure we're in the project directory cd $(dirname $0)/.. -## This is bananas. -mkdir -p build/ out/ build/cache/ -cp -rL /usr/share/arduino /usr/share/arduino-builder build/ || true # there's a cyclic symlink that causes failure +mkdir -p out/ while read vid pid variant; do log log Building $vid $pid $product log + ## This is bananas. + rm -rf build/ + mkdir -p build/cache/ + cp -rL /usr/share/arduino /usr/share/arduino-builder build/ || true # there's a cyclic symlink that causes failure + sed -i " /leonardo.build.vid/ s/=.*/=$vid/ /leonardo.build.pid/ s/=.*/=$pid/