-
-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (65 loc) · 1.98 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Gradle Build
on: [ push, pull_request ]
jobs:
build:
name: Build lin-bus on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build -s
- name: "Kill Daemons Because Apparently GitHub Won't Do It For You"
run: ./gradlew --stop
- uses: actions/upload-artifact@v4
name: Archive Reports
if: always()
with:
name: reports for ${{ matrix.os }}
path: '**/build/reports/**'
build-all-distributions:
name: Build lin-bus NBT Editor distribtions on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [ build ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest, macos-12 ] # macos-12 for x86 support
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build jpackage distributions
run: ./gradlew jpackage -s
- name: "Kill Daemons Because Apparently GitHub Won't Do It For You"
run: ./gradlew --stop
- uses: actions/upload-artifact@v4
name: Archive Distributions
with:
name: distributions for ${{ matrix.os }}
path: 'gui/build/jpackage/*.*'
- uses: actions/upload-artifact@v4
name: Archive Reports
if: always()
with:
name: reports for ${{ matrix.os }}
path: '**/build/reports/**'