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 | |
| 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
| -rw-r--r-- | .forgejo/workflows/demo.yaml | 19 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | build.sh | 31 | ||||
| -rwxr-xr-x | sdk-12.0.0_r19/download.sh | 6 | ||||
| -rw-r--r-- | sdk-13.0.0_r10/download.sh | 6 | ||||
| -rw-r--r-- | sdk-13.0.0_r18/download.sh | 6 |
6 files changed, 60 insertions, 9 deletions
diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml new file mode 100644 index 0000000..3f113d7 --- /dev/null +++ b/.forgejo/workflows/demo.yaml @@ -0,0 +1,19 @@ +on: [push] +jobs: + test: + runs-on: debian-latest + steps: + - run: sudo apt update + - run: | + sudo apt install git repo gnupg flex bison gperf build-essential zip curl \ + zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5-dev \ + libncurses5 libx11-dev lib32z1-dev libgl1-mesa-dev \ + libxml2-utils xsltproc unzip rsync python3 python-is-python3 tofrodos repo + - run: mkdir -p artifacts + - uses: actions/upload-artifact@v3 + with: + name: many-artifacts + path: artifacts/ + - run: ./build.sh + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7b60f4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.repo 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 diff --git a/sdk-12.0.0_r19/download.sh b/sdk-12.0.0_r19/download.sh index 7b7f683..422d3fb 100755 --- a/sdk-12.0.0_r19/download.sh +++ b/sdk-12.0.0_r19/download.sh @@ -4,11 +4,11 @@ # to check for the latest version/revision. # # Usually, different revisions (e.g._r19) work more or less out of the box -# without the need to change the build skripts. +# without the need to change the build skripts. # -# Caution: VERSION needs to be identical in all scripts in this directory, +# Caution: VERSION needs to be identical in all scripts in this directory, # otherwise the build will not work. VERSION='12.0.0_r19' -repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 +repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto repo sync --current-branch -j4 diff --git a/sdk-13.0.0_r10/download.sh b/sdk-13.0.0_r10/download.sh index d5d51e2..a49a8d9 100644 --- a/sdk-13.0.0_r10/download.sh +++ b/sdk-13.0.0_r10/download.sh @@ -4,11 +4,11 @@ # to check for the latest version/revision. # # Usually, different revisions (e.g._r19) work more or less out of the box -# without the need to change the build skripts. +# without the need to change the build skripts. # -# Caution: VERSION needs to be identical in all scripts in this directory, +# Caution: VERSION needs to be identical in all scripts in this directory, # otherwise the build will not work. VERSION='13.0.0_r10' -repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 +repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto repo sync --current-branch -j4 diff --git a/sdk-13.0.0_r18/download.sh b/sdk-13.0.0_r18/download.sh index 092c76a..d4d833b 100644 --- a/sdk-13.0.0_r18/download.sh +++ b/sdk-13.0.0_r18/download.sh @@ -4,11 +4,11 @@ # to check for the latest version/revision. # # Usually, different revisions (e.g._r19) work more or less out of the box -# without the need to change the build skripts. +# without the need to change the build skripts. # -# Caution: VERSION needs to be identical in all scripts in this directory, +# Caution: VERSION needs to be identical in all scripts in this directory, # otherwise the build will not work. VERSION='13.0.0_r18' -repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 +repo init -u https://android.googlesource.com/platform/manifest -b android-$VERSION --depth=1 --color=auto repo sync --current-branch -j4 |
