Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions .github/workflows/android.yml → .github/workflows/_android.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
name: Android

on:
push:
branches:
- main
- release/*
tags:
- ciflow/android/*
pull_request:
paths:
- .ci/docker/**
- .github/workflows/android.yml
- build/*android*.sh
- install_requirements.sh
- examples/demo-apps/android/**
- extension/android/**
- extension/benchmark/android/**
- extension/module/**
workflow_call:
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -51,7 +36,7 @@ jobs:
run-emulator:
needs: build-llm-demo
# NB: Use metal install for KVM support to run the emulator faster
runs-on: linux.24xl.spr-metal
runs-on: linux.12xlarge
env:
ANDROID_NDK_VERSION: r27b
API_LEVEL: 34
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ jobs:
exit 1
fi

android:
uses: ./.github/workflows/_android.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm too blame here but I'm bit concern about the usage of a metal instances like c7i.metal-24xl to run the emulator. That one is way over spec (and AWS doesn't provide smaller size metal instance). And with it running in pull, it could has a negative impact on the bill. I think let's try to switch back to a smaller instance there, linux.4xlarge. The emulator test might take 10 more minute to finish IIRC, but that's probably ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that 4xlarge doesn't work but 12xlarge works

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, 12xlarge is ok too


unittest:
uses: ./.github/workflows/_unittest.yml
with:
Expand Down
Loading