Skip to content

Commit 471b3e6

Browse files
authored
Create build-debug-apk.yml
1 parent 1942986 commit 471b3e6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Android CI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
name: Build debug apk
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3.0.2
12+
13+
- name: set up JDK 11
14+
uses: actions/setup-java@v3.3.0
15+
with:
16+
java-version: '11'
17+
distribution: 'adopt'
18+
cache: gradle
19+
20+
- name: Grant execute permission for gradlew
21+
run: chmod +x gradlew
22+
23+
- name: Build debug apk
24+
uses: eskatos/gradle-command-action@v2.1.5
25+
with:
26+
arguments: assembleDebug
27+
distributions-cache-enabled: true
28+
dependencies-cache-enabled: true
29+
configuration-cache-enabled: true
30+
31+
- name: Upload debug apk
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: debug
35+
path: app/build/outputs/apk/debug

0 commit comments

Comments
 (0)