blob: 59647243a91be8e809bdab5e3184e0750f2ed27c [file] [log] [blame]
# Builds the TFLite Java Bindings Android Library using the gradle-android
# Docker image.
name: Build TFLite Android Library
on:
workflow_dispatch:
jobs:
build_android_with_docker:
runs-on: ubuntu-20.04
env:
ANDROID_CONTAINER: "gcr.io/iree-oss/gradle-android@sha256:d9d0f880c3ac995b9e8a23bbf8079b80f6842851654016c5f362c747c09aaf93"
steps:
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2
with:
submodules: true
- name: Execute Android Build
run: |
docker run --rm \
-w=/work \
-v $PWD:/work \
"${ANDROID_CONTAINER}" \
bash -c build_tools/gradle/build_tflite_android_library.sh
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2
with:
path: ./runtime/bindings/tflite/java/build/outputs/aar/*.aar
retention-days: 1