From 1b7c5a108fa840550c6cd7cdbd4b5df29c1fada2 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 29 Dec 2023 14:30:43 +0100 Subject: CI tries to build any folder that starts with sdk --- build.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..600f158 --- /dev/null +++ b/build.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# + +# Create a list of all files that start with sdk +sdk_files=($(find . -type d -name 'sdk*')) + +# Loop through each SDK folder +for d in $sdk_files; do + # CD into the SDK folder + cd "$d" + pwd + + # Make the shell scripts executable + chmod +x *.sh + + # Run the dependencies and download scripts + + ./download.sh + # Create the artifacts directory + mkdir -p artifacts + + # If patch.sh exists, run it + if [ -f patch.sh ]; then + ./patch.sh + fi + + echo "Building $d" + ./build.sh + echo "Done with $d" + cd .. +done -- cgit v1.2.3