Fixed sponge hiding bar #343
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gradle Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
testShips: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
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@v3 | |
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 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
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@v3 | |
with: | |
submodules: true | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
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-4Folia: | |
needs: [ buildTranslateFolia ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Build Folia with Gradle | |
run: ./gradlew buildPaper -Pfolia-api-version=1.20.4 -Puse-paper=true | |