diff options
| author | Liam <lgh@e.email> | 2023-12-29 14:30:43 +0100 |
|---|---|---|
| committer | Liam <lgh@e.email> | 2023-12-29 14:30:43 +0100 |
| commit | 1b7c5a108fa840550c6cd7cdbd4b5df29c1fada2 (patch) | |
| tree | 390cd7adf1aeacef1df93f7d3189dfb966038f3d /build.sh | |
| parent | 6cef7c5aead9fde523795760b5359d3b90dc7203 (diff) | |
| download | SDK-Rebuild-1b7c5a108fa840550c6cd7cdbd4b5df29c1fada2.tar.gz SDK-Rebuild-1b7c5a108fa840550c6cd7cdbd4b5df29c1fada2.tar.bz2 SDK-Rebuild-1b7c5a108fa840550c6cd7cdbd4b5df29c1fada2.zip | |
CI tries to build any folder that starts with sdk
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 31 |
1 files changed, 31 insertions, 0 deletions
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 |
