forked from FabricMC/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 832 Bytes
/
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
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [17-jdk, 21-jdk]
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v4
- run: ./gradlew build javadocJar checkMappings --stacktrace --warning-mode fail
- name: Build artifacts
if: ${{ matrix.java == '21-jdk' }}
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/
test-build-logic:
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:21-jdk
options: --user root
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- run: ./gradlew :filament:build