-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 1.42 KB
/
Copy pathbuild.yml
File metadata and controls
42 lines (34 loc) · 1.42 KB
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
# Builds every Minecraft version / loader combination declared in settings.gradle.kts.
# Stonecutter fans the build out across all targets; chiseledBuildAndCollect gathers the
# resulting jars into the root build/libs directory.
name: build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
# 1.21.x targets compile against Java 21, 26.x targets against Java 25.
# Both toolchains have to be present for the whole matrix to build in one pass.
- name: setup jdks
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
with:
java-version: |
17
21
25
distribution: 'temurin'
- name: setup gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build all versions
run: ./gradlew chiseledBuildAndCollect --stacktrace
- name: capture build artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: Mod Jars
path: build/libs/