Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 558cf31

Browse files
authored
Added gradle cache and more
Now it is possible to build debug apks from different branches. Gradle cache was also added to speed up the build process.
1 parent 41d68e4 commit 558cf31

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

.github/workflows/build-debug.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,48 @@
11
name: Generate APK Debug
22

33
on:
4-
# Triggers the workflow on push or pull request events but only for default and protected branches
54
push:
65
branches:
7-
- master
6+
- '*'
7+
paths-ignore:
8+
- '**.md'
89
pull_request:
9-
branches:
10-
- master
10+
branches:
11+
- '*'
12+
paths-ignore:
13+
- '**.md'
14+
workflow_dispatch:
15+
1116
jobs:
1217
build:
1318

1419
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
packages: write
1523

1624
steps:
17-
- uses: actions/checkout@v3
25+
- name: Check out repository
26+
uses: actions/checkout@v3
27+
with:
28+
submodules: true
1829

19-
- name: Set Up JDK
30+
- name: Set up Java 11
2031
uses: actions/setup-java@v3
2132
with:
22-
distribution: 'zulu'
23-
java-version: '11'
24-
33+
java-version: 11
34+
distribution: 'adopt'
35+
cache: gradle
36+
2537
- name: Change wrapper permissions
2638
run: chmod +x ./gradlew
2739

28-
- name: Run tests
29-
run: ./gradlew test
30-
31-
# Create APK Debug
3240
- name: Build apk debug
3341
run: ./gradlew app:assembleDefaultDebug
3442

3543
- name: Build apk fdroid-debug
3644
run: ./gradlew app:assembleFdroidDebug
3745

38-
# Upload Artifact Build
39-
# Noted For Output [module-name]/build/outputs/apk
4046
- name: Upload apk debug
4147
uses: actions/upload-artifact@v3
4248
with:

0 commit comments

Comments
 (0)