-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 958 Bytes
/
gradle_build.yml
File metadata and controls
42 lines (35 loc) · 958 Bytes
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
name: gradle_build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Check out submodules
uses: snickerbockers/submodules-init@v4
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle build
run: ./gradlew --build-cache build
- name: Archive artifact
uses: actions/upload-artifact@v2
with:
name: artifact
path: build/libs