From a326299ca04c5482d222ee66a147367ae5b73b1c Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 4 Jan 2024 19:37:06 -0700 Subject: [PATCH] ci/cd --- .gitea/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/build.sh b/.gitea/build.sh index d2995b1..cb7b811 100755 --- a/.gitea/build.sh +++ b/.gitea/build.sh @@ -4,6 +4,9 @@ log () { echo "=== $*" } +# 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/ @@ -20,6 +23,9 @@ while read vid pid variant; do " build/arduino/hardware/arduino/avr/boards.txt grep 'leonardo.build' build/arduino/hardware/arduino/avr/boards.txt + # I told you not to use this directory, Arduino. + rm -rf $HOME/.cache + arduino-builder \ -fqbn arduino:avr:leonardo \ -build-path $(pwd)/build/ \