Skip to content

Commit ec147bf

Browse files
committed
ci: build and test the main ports on GitHub Actions
Build every push and pull request for 26.2, 1.21.11 and 1.20.1, each with the JDK it needs, and run the JUnit suites of the shared data layer, so a broken port or a regression in the common code is caught before release.
1 parent 3724544 commit ec147bf

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
name: ${{ matrix.module }} (JDK ${{ matrix.java }})
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- module: multiloader-26.2 # Minecraft 26.2 — Fabric + NeoForge
17+
java: '25'
18+
- module: multiloader # Minecraft 1.21.11 — Fabric + NeoForge
19+
java: '21'
20+
- module: multiloader-1.20.1 # Minecraft 1.20.1 — Fabric + Forge
21+
java: '21'
22+
defaults:
23+
run:
24+
working-directory: ${{ matrix.module }}
25+
steps:
26+
- uses: actions/checkout@v5
27+
28+
- uses: actions/setup-java@v5
29+
with:
30+
distribution: temurin
31+
java-version: ${{ matrix.java }}
32+
cache: gradle
33+
cache-dependency-path: |
34+
${{ matrix.module }}/**/*.gradle*
35+
${{ matrix.module }}/**/gradle-wrapper.properties
36+
37+
- name: Build and run tests
38+
run: bash ./gradlew build --no-daemon --stacktrace

0 commit comments

Comments
 (0)