up 错误的初始化顺序 #58
Workflow file for this run
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
push: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- 'releases/**' | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- '*' | |
jobs: | |
build_folia: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd folia && gradlew shadowJar | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_folia" | |
path: build/libs/ | |
build_bukkit: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd server && gradlew shadowJar | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_bukkit" | |
path: build/libs/ | |
build_bungeecord_velocity: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd server_top && gradlew shadowJar | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_bungeecord_velocity" | |
path: build/libs/ | |
build_fabric_1_16_5: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_16_5 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_16_5" | |
path: build/libs/ | |
build_fabric_1_18_2: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_18_2 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_18_2" | |
path: build/libs/ | |
build_fabric_1_19_2: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_19_2 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_19_2" | |
path: build/libs/ | |
build_fabric_1_20: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_20 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_20" | |
path: build/libs/ | |
build_fabric_1_20_2: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_20_2 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_20_2" | |
path: build/libs/ | |
build_fabric_1_20_6: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_20_6 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_20_6" | |
path: build/libs/ | |
build_fabric_1_21: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd fabric_1_21 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_fabric_1_21" | |
path: build/libs/ | |
build_forge_1_7_10: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_7_10 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_7_10" | |
path: build/libs/ | |
build_forge_1_12_2: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_12_2 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_12_2" | |
path: build/libs/ | |
build_forge_1_16_5: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_16_5 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_16_5" | |
path: build/libs/ | |
build_forge_1_18_2: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_18_2 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_18_2" | |
path: build/libs/ | |
build_forge_1_19_2: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_19_2 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_19_2" | |
path: build/libs/ | |
build_forge_1_19_3: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_19_3 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_19_3" | |
path: build/libs/ | |
build_forge_1_20: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd forge_1_20 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_forge_1_20" | |
path: build/libs/ | |
build_neoforge_1_20_4: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd neoforge_1_20_4 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_neoforge_1_20_4" | |
path: build/libs/ | |
build_neoforge_1_20_5: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd neoforge_1_20_5 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_neoforge_1_20_5" | |
path: build/libs/ | |
build_neoforge_1_21: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 # v3.1.0 | |
- name: build | |
shell: cmd | |
run: | | |
link.cmd && cd neoforge_1_21 && gradlew build | |
- name: update | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "allmusic_server_neoforge_1_21" | |
path: build/libs/ |