blob: 0200f4673716d116bd312b106d70b9cd94259b6f (
plain)
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
51
52
53
54
|
# Build Workflow
name: Build
on:
- pull_request
- workflow_dispatch
- push
concurrency:
group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
cancel-in-progress: true
jobs:
build:
name: Build
strategy:
matrix:
version:
- 1.8.9-forge
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Cache Loom
id: cache
uses: actions/cache@v2
with:
path: |
./.gradle/loom-cache
key: ${{ runner.os }}-loom-cache-jdk17-${{ hashFiles('./build.gradle.kts') }}
- name: Chmod Gradle
run: chmod +x ./gradlew
- name: Setup Gradle
if: steps.cache.outputs.cache-hit != 'true'
run: ./gradlew setupGradle --no-daemon
- name: Build
run: ./gradlew build --no-daemon
|