-
-
Notifications
You must be signed in to change notification settings - Fork 85
59 lines (59 loc) · 2.14 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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build plugin
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
distribution: [temurin]
java-version: ["21"]
runs-on: ${{ matrix.os }}
if: "!startsWith(github.event.head_commit.message, '[ci-skip]')"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: "Setup JDK (${{ matrix.distribution }} ${{ matrix.java-version }})"
uses: actions/setup-java@v4
with:
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java-version }}"
cache: gradle
cache-dependency-path: |
**/*.gradle*
**/gradle-wrapper.properties
- name: Build with Gradle
run: ./gradlew --no-daemon --stacktrace
- name: "Upload the Java ${{ matrix.java-version }} plugin JAR"
uses: actions/upload-artifact@v4
with:
name: "! Quests-JDK${{ matrix.java-version }}"
path: |
build/libs/*.jar
!build/libs/*-downgraded-*.jar
if-no-files-found: error
- name: Upload the downgraded Java 8 plugin JAR
uses: actions/upload-artifact@v4
with:
name: Quests-JDK1.8 (use at your own risk)
path: build/libs/*-downgraded-8-shaded.jar
if-no-files-found: error
- name: Upload the downgraded Java 11 plugin JAR
uses: actions/upload-artifact@v4
with:
name: Quests-JDK11 (use at your own risk)
path: build/libs/*-downgraded-11-shaded.jar
if-no-files-found: error
- name: Upload the downgraded Java 16 plugin JAR
uses: actions/upload-artifact@v4
with:
name: Quests-JDK16 (use at your own risk)
path: build/libs/*-downgraded-16-shaded.jar
if-no-files-found: error
- name: Upload the downgraded Java 17 plugin JAR
uses: actions/upload-artifact@v4
with:
name: Quests-JDK17 (use at your own risk)
path: build/libs/*-downgraded-17-shaded.jar
if-no-files-found: error