-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·50 lines (39 loc) · 1.43 KB
/
push-debug-build.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
name: Build
on:
push:
pull_request:
jobs:
build:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/checkout@v2
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
- name: System Information
run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd
- name: Build project
run: ./gradlew build --stacktrace
apk:
name: Generate APK
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
- name: System Information
run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd
- name: Build APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: showcase-debug-build.apk
path: showcase/build/outputs/apk/debug/showcase-debug.apk