mirror of
https://github.com/izzy2lost/aab2apk.git
synced 2026-06-19 01:20:08 -07:00
workflows
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user