-
Notifications
You must be signed in to change notification settings - Fork 918
52 lines (43 loc) · 1.15 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
52
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@v4
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.18.3'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Assemble the project
run: ./gradlew 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@v4
with:
name: pr-ddg-debug
path: pr-ddg-debug.apk