mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This adds 2 jobs to build PyTorch Android with and without lite interpreter: * Keep the list of currently supported ABI armeabi-v7a, arm64-v8a, x86, x86_64 * Pass all the test on emulator * Run an the test app on emulator and my Android phone `arm64-v8a` without any issue  * Run on AWS https://us-west-2.console.aws.amazon.com/devicefarm/home#/mobile/projects/b531574a-fb82-40ae-b687-8f0b81341ae0/runs/5fce6818-628a-4099-9aab-23e91a212076 Pull Request resolved: https://github.com/pytorch/pytorch/pull/110976 Approved by: https://github.com/atalman
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Build Android binaries
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- nightly
|
|
tags:
|
|
# NOTE: Binary build pipelines should only get triggered on release candidate builds
|
|
# Release candidate tags look like: v1.11.0-rc1
|
|
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
|
|
paths:
|
|
- .github/workflows/build-android-binaries.yml
|
|
- .github/workflows/_run_android_tests.yml
|
|
- android/**
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/build-android-binaries.yml
|
|
- .github/workflows/_run_android_tests.yml
|
|
- android/**
|
|
# NB: We can use this workflow dispatch to test and build the binaries manually
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
android-build-test:
|
|
name: android-build-test
|
|
uses: ./.github/workflows/_run_android_tests.yml
|
|
with:
|
|
test-matrix: |
|
|
{ include: [
|
|
{ config: 'default',
|
|
shard: 1,
|
|
num_shards: 1,
|
|
runner: 'ubuntu-20.04-16x',
|
|
use_lite_interpreter: 1,
|
|
support_abi: 'armeabi-v7a,arm64-v8a,x86,x86_64',
|
|
},
|
|
{ config: 'default',
|
|
shard: 1,
|
|
num_shards: 1,
|
|
runner: 'ubuntu-20.04-16x',
|
|
use_lite_interpreter: 0,
|
|
support_abi: 'armeabi-v7a,arm64-v8a,x86,x86_64',
|
|
},
|
|
]}
|