From 96aa518927358d09059bd60f981a466903a00a75 Mon Sep 17 00:00:00 2001 From: izzy2lost Date: Fri, 14 Nov 2025 12:46:41 -0500 Subject: [PATCH] workflows --- .../workflows/bundletool-android-arm64.yml | 46 +++++++++++++++++++ .github/workflows/bundletool-native.yml | 13 ++++-- 2 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/bundletool-android-arm64.yml diff --git a/.github/workflows/bundletool-android-arm64.yml b/.github/workflows/bundletool-android-arm64.yml new file mode 100644 index 0000000..3332782 --- /dev/null +++ b/.github/workflows/bundletool-android-arm64.yml @@ -0,0 +1,46 @@ +name: Build BundleTool Native for Android ARM64 + +on: + workflow_dispatch: + +jobs: + build-android-arm64: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install GraalVM (Java 21) + uses: graalvm/setup-graalvm@v1 + with: + distribution: "graalvm-community" + version: "22.0.1" + java-version: "21" + components: "native-image" + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - name: Install cross-compilation toolchain + run: | + sudo apt-get update + sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu + + - name: Build Native ARM64 Bundletool + run: | + native-image \ + --no-fallback \ + -H:+StaticExecutableWithDynamicLibC \ + --target=aarch64-linux-gnu \ + -jar bundletool/bundletool.jar \ + bundletool-arm64 + + - name: Verify binary + run: | + file bundletool-arm64 + ls -lh bundletool-arm64 + + - name: Upload Native Binary + uses: actions/upload-artifact@v4 + with: + name: bundletool-android-arm64 + path: bundletool-arm64 diff --git a/.github/workflows/bundletool-native.yml b/.github/workflows/bundletool-native.yml index 50f83a5..9925730 100644 --- a/.github/workflows/bundletool-native.yml +++ b/.github/workflows/bundletool-native.yml @@ -30,16 +30,19 @@ jobs: mkdir -p bundletool cp bundletool/bundletool.jar . - - name: Build Native ARM64 Bundletool + - name: Build Native x64 Bundletool run: | native-image \ --no-fallback \ - --static \ -jar bundletool.jar \ - bundletool/bundletool + bundletool-native + + - name: Move binary to bundletool directory + run: | + mv bundletool-native bundletool/bundletool-native - name: Upload Native Binary uses: actions/upload-artifact@v4 with: - name: bundletool-native-arm64 - path: bundletool + name: bundletool-native-linux-x64 + path: bundletool/bundletool-native