workflows

This commit is contained in:
izzy2lost
2025-11-14 12:46:41 -05:00
parent 7fd40fd9a2
commit 96aa518927
2 changed files with 54 additions and 5 deletions
@@ -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
+8 -5
View File
@@ -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