-
Notifications
You must be signed in to change notification settings - Fork 512
78 lines (64 loc) · 1.65 KB
/
android-demos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Android Demos
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- '.github/workflows/android-demos.yml'
- 'demo/android/**'
- '!demo/android/Activity/README.md'
- '!demo/android/Service/README.md'
- '!demo/android/STT/README.md'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '.github/workflows/android-demos.yml'
- 'demo/android/**'
- '!demo/android/Activity/README.md'
- '!demo/android/Service/README.md'
- '!demo/android/STT/README.md'
jobs:
build-activity-demo:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/android/Activity
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build English
run: ./gradlew assembleEnDebug
- name: Build Other Language
run: ./gradlew assembleArDebug
build-service-demo:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/android/Service
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build
run: ./gradlew assembleDebug
build-stt-demo:
runs-on: ubuntu-latest
defaults:
run:
working-directory: demo/android/STT
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build
run: ./gradlew assembleDebug