From 0881e697135ed3380b46b3f663f126ed5383b295 Mon Sep 17 00:00:00 2001 From: Whales Chen <1376031164@qq.com> Date: Sun, 23 Oct 2022 12:42:26 +0800 Subject: [PATCH] update --- .github/workflows/Build.yml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 86acf87..f93440c 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -44,8 +44,7 @@ jobs: # with: # name: env.tar # path: env.tar - - build_on_java16: + build_on_java18: # for minecraft 1.17+ runs-on: ubuntu-latest strategy: @@ -58,6 +57,38 @@ jobs: - '1.18.2' - '1.18.1' - '1.18' + env: + ver: ${{ matrix.ver }} + + steps: + - name: Setup java + uses: actions/setup-java@v2 + with: + distribution: "adopt" + java-version: "18" + + - name: Download BuildTools.jar + run: wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar + + - run: mkdir ./outputs + + - name: Build Jars + # if: ${{ matrix.ver != env.latest }} + continue-on-error: true + run: java -jar BuildTools.jar --rev $ver --output-dir ./outputs + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: outputs + path: outputs + + build_on_java16: + # for minecraft 1.17+ + runs-on: ubuntu-latest + strategy: + matrix: + ver: - '1.17.1' - '1.17' env: @@ -151,6 +182,7 @@ jobs: needs: - build_on_java16 - build_on_java8 + - build_on_java18 runs-on: ubuntu-latest