From f1e984b5e73d4d52afe5e66b104b64d0c5edeba4 Mon Sep 17 00:00:00 2001 From: Izzy Date: Fri, 14 Nov 2025 11:56:12 -0500 Subject: [PATCH] Refactor bundletool-native.yml for ARM64 build Updated workflow to prepare and build Native ARM64 Bundletool. --- .github/workflows/bundletool-native.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/bundletool-native.yml b/.github/workflows/bundletool-native.yml index 13bc7ff..fb253c5 100644 --- a/.github/workflows/bundletool-native.yml +++ b/.github/workflows/bundletool-native.yml @@ -1,4 +1,4 @@ -name: Build Native Bundletool ARM64 +name: Convert bundletool.jar to Native ARM64 on: workflow_dispatch: @@ -25,23 +25,16 @@ jobs: sudo apt-get update sudo apt-get install -y unzip zip curl clang build-essential - - name: Download bundletool source + - name: Prepare bundletool JAR run: | - curl -L -o bundletool.zip https://github.com/google/bundletool/archive/refs/heads/master.zip - unzip bundletool.zip - mv bundletool-master bundletool-src - chmod +x bundletool-src/gradlew + mkdir -p bundletool + cp bundletool/bundletool.jar . - - name: Build bundletool.jar (using bundletool’s own Gradle) - working-directory: bundletool-src - run: | - ./gradlew build -x test - cp build/libs/bundletool-*.jar ../bundletool.jar - - - name: Build Native Image (ARM64) + - name: Build Native ARM64 Bundletool run: | native-image \ --no-fallback \ + --static \ -jar bundletool.jar \ bundletool