Import all versions (#8)

* Import all versions

* Prepare first workflow

* Cleanup build scripts

* More cleanup

* Cleanup more stuff and 1.7 on server

* Run multiple tasks in parallel

* Use version in job name

* Error on missing files

* Backport EULA mixin

* Update upload artifact

* Prevent build getting stuck

* Cleanup code

* More code cleanup

* Update build.yml

* Fix compilation

---------

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
This commit is contained in:
Alex
2023-12-31 20:25:13 +01:00
committed by GitHub
co-authored by Romain Beaumont
parent 5441b07c50
commit a48fb9912d
556 changed files with 30777 additions and 814 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Java CI with Gradle
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["1.7", "1.8.9", "1.9.4", "1.10.2", "1.11.2", "1.12.2", "1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.19.2", "22w19a", "1.20"]
name: Build ${{ matrix.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Generate ${{ matrix.version }}
uses: gradle/gradle-build-action@v2
with:
arguments: :${{ matrix.version }}:runServer
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: data-${{ matrix.version }}
path: ${{ matrix.version }}/run/minecraft-data
if-no-files-found: error