Compare commits

...

3 Commits

Author SHA1 Message Date
e47ae1ed20 added logging mode for different build modes
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 7m27s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s
2025-12-10 10:39:53 +01:00
5cdff335c7 added build.sh argument for clean/debug mode 2025-12-10 10:38:43 +01:00
339044336f added 32-bit support packages 2025-12-10 10:34:36 +01:00
3 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ jobs:
- name: Build APKs - name: Build APKs
run: | run: |
./build.sh ./build.sh
./build.sh clean
- name: Copy APKs to host directory - name: Copy APKs to host directory
run: | run: |

View File

@@ -2,6 +2,16 @@
# This script will initialize the gradle build process for all subprojects in src dicetory # This script will initialize the gradle build process for all subprojects in src dicetory
# Check for a build mode argument
if [ "$1" == "clean" ]; then
BUILD_MODE="assembleClean"
BUILD_LOGGING=""
else
BUILD_MODE="assembleDebug"
BUILD_LOGGING="--warning-mode all"
fi
# check if user is root and change user to builder # check if user is root and change user to builder
if [ "$EUID" -eq 0 ]; then if [ "$EUID" -eq 0 ]; then
@@ -19,7 +29,7 @@ yes | /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses
for dir in src/*/; do for dir in src/*/; do
if [ -f "$dir/build.gradle" ]; then if [ -f "$dir/build.gradle" ]; then
echo "Building project in $dir" echo "Building project in $dir"
(cd "$dir" && gradle build) (cd "$dir" && gradle clean $BUILD_MODE $BUILD_LOGGING)
else else
echo "No build.gradle found in $dir, skipping." echo "No build.gradle found in $dir, skipping."
fi fi

View File

@@ -1,3 +1,6 @@
git git
base-devel base-devel
cargo cargo
lib32-zlib
lib32-ncurses
lib32-sdl