Skip to content

Commit 6a1772d

Browse files
authored
Move android.yml to pull.yml (#6449)
Add workflow_call trigger. android.yml takes about 20 minutes and it's not expensive as before Pull Request resolved: #6449
1 parent 2553788 commit 6a1772d

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

.github/workflows/android.yml renamed to .github/workflows/_android.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
name: Android
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- release/*
8-
tags:
9-
- ciflow/android/*
10-
pull_request:
11-
paths:
12-
- .ci/docker/**
13-
- .github/workflows/android.yml
14-
- build/*android*.sh
15-
- install_requirements.sh
16-
- examples/demo-apps/android/**
17-
- extension/android/**
18-
- extension/benchmark/android/**
19-
- extension/module/**
4+
workflow_call:
205
workflow_dispatch:
216

227
concurrency:
@@ -51,7 +36,7 @@ jobs:
5136
run-emulator:
5237
needs: build-llm-demo
5338
# NB: Use metal install for KVM support to run the emulator faster
54-
runs-on: linux.24xl.spr-metal
39+
runs-on: linux.12xlarge
5540
env:
5641
ANDROID_NDK_VERSION: r27b
5742
API_LEVEL: 34

.github/workflows/pull.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ jobs:
347347
exit 1
348348
fi
349349
350+
android:
351+
uses: ./.github/workflows/_android.yml
352+
350353
unittest:
351354
uses: ./.github/workflows/_unittest.yml
352355
with:

0 commit comments

Comments
 (0)