From 6d8256bb169a425ed0ede12c3c13d0f3410f395b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 4 Jan 2024 19:51:22 -0700 Subject: [PATCH] ci/cd --- .gitea/build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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/