-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (35 loc) · 1.05 KB
/
build.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
name: Build FarmControl
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up NabConfiguration JDK
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Check out NabConfiguration
uses: actions/checkout@v2
with:
repository: froobynooby/nab-configuration
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Install NabConfiguration
run: ./gradlew install
- name: Set up FarmControl JDK
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
- name: Check out FarmControl
uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build FarmControl
run: ./gradlew build
- name: Archive FarmControl
uses: actions/upload-artifact@v2
with:
path: build/libs/*.jar
name: FarmControl