Skip to content

another gradle wrapper #357

another gradle wrapper

another gradle wrapper #357

Workflow file for this run

name: Gradle Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
testShips:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Run all tests
run: ./gradlew test
- name: Clean
run: ./gradlew clean
- name: Run translate core
run: './gradlew :ShipsForCore:build'
- name: Upload
uses: actions/upload-artifact@v3
with:
name: "Ships For Core"
path: "ShipsForCore/build/libs/*.jar"
buildShipsSponge:
needs: [ testShips ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Build Sponge with Gradle
run: ./gradlew buildSponge
- uses: actions/upload-artifact@v3
with:
name: "Standalone-Ships-Sponge"
path: "standalone/ShipsSponge.jar"
buildTranslateFolia:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'adopt'
- name: Build Folia with Gradle
run: ./gradlew buildPaper
- uses: actions/upload-artifact@v3
with:
name: "TranslateCore-Folia-And-Paper"
path: "standalone/ShipsFolia.jar"
buildStandAloneFolia:
needs: [ buildTranslateFolia, testShips ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Build Folia with Gradle
run: ./gradlew buildPaper
- uses: actions/upload-artifact@v3
with:
name: "Standalone-Ships-Folia-And-Paper"
path: "standalone/ShipsFolia.jar"
build1-20-6Folia:
needs: [ buildTranslateFolia ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Build Folia with Gradle
run: ./gradlew buildPaper -Pfolia-api-version=1.20.6 -Puse-paper=true