Skip to content

Commit 7042fae

Browse files
committed
Configure GitHub Actions with assemble workflow
1 parent 9002b27 commit 7042fae

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/assemble.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Assemble
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
assemble:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: actions/setup-java@v2
18+
with:
19+
distribution: 'adopt'
20+
java-version: '8'
21+
22+
- name: Cache Gradle packages
23+
uses: actions/cache@v2
24+
with:
25+
path: |
26+
~/.gradle/caches
27+
~/.gradle/wrapper
28+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+
restore-keys: |
30+
${{ runner.os }}-gradle-
31+
32+
- name: Assemble release
33+
run: ./gradlew assembleRelease
34+
35+
- name: Assemble debug
36+
run: ./gradlew assembleDebug
37+
38+
- name: Cleanup Gradle Cache
39+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
40+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
41+
run: |
42+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
43+
rm -f ~/.gradle/caches/modules-2/gc.properties

gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)