-
Notifications
You must be signed in to change notification settings - Fork 928
51 lines (43 loc) · 1.12 KB
/
build-debug-apk.yaml
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
name: Build debug apk
on:
pull_request:
branches:
- develop
paths-ignore:
- '**.md'
- '.github/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_debug_apk:
name: Build debug apk
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.18.3'
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: assembleInternalDebug -Pforce-default-variant
- name: Obtain debug apk
if: always()
run: cp $(find . -regex '.*outputs/apk/.*internal-debug.apk') pr-ddg-debug.apk
- name: Upload debug apk
if: always()
uses: actions/upload-artifact@v3
with:
name: pr-ddg-debug
path: pr-ddg-debug.apk