-
Notifications
You must be signed in to change notification settings - Fork 54
50 lines (46 loc) · 1.27 KB
/
gradle.yml
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: Java CI
on:
push:
branches:
- '1.16*'
- '1.15*'
- '1.14*'
- '1.12*'
pull_request:
branches:
- '1.16*'
- '1.15*'
- '1.14*'
- '1.12*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle Cache
uses: actions/cache@v1.0.3
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-cache${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-cache
- name: Cache Gradle Wrapper
uses: actions/cache@v1.0.3
with:
path: |
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-wrapper
- name: Clean cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock ~/.gradle/caches/*/plugin-resolution/ ~/.gradle/caches/minecraft/deobfedDeps/providedDummy.jar ~/.gradle/caches/minecraft/deobfedDeps/compileDummy.jar
- name: Setup Gradle
run: ./gradlew
- name: Build
run: ./gradlew build