From c720c4530e1056e6152099bb3f7d16146593e86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=82=A6=E8=A7=A3=E8=AF=B4?= Date: Fri, 9 Aug 2024 17:49:51 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 63 +++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6354265..65ab1e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,31 +1,32 @@ -name: Build -on: [ pull_request, push ] - -jobs: - build: - strategy: - matrix: - minecraft: [ 1.16.5, 1.17.1, 1.18.2, 1.19.2, 1.19.4, 1.20.1, 1.20.4 ] - loader: [ fabric, forge ] - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Validate gradle wrapper - uses: gradle/wrapper-validation-action@v1 - - name: Setup JDK 17 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: 17 - - name: Make gradle wrapper executable - run: chmod +x ./gradlew - - name: Setup ${{ matrix.minecraft }} ${{ matrix.loader }} - run: ./gradlew setupLibrary -Pminecraft_version="${{ matrix.minecraft }}" - - name: Build ${{ matrix.minecraft }} ${{ matrix.loader }} - run: ./gradlew ${{ matrix.loader }}:build -Pminecraft_version="${{ matrix.minecraft }}" - #- name: Capture release artifacts - # uses: actions/upload-artifact@v3 - # with: - # name: Fabric&Forge Artifacts - # path: build/release/ +#name: Build +#on: [ pull_request, push ] +# +#jobs: +# build: +# strategy: +# matrix: +# minecraft: [ 1.16.5, 1.17.1, 1.18.2, 1.19.2, 1.19.4, 1.20.1, 1.20.4 ] +# loader: [ fabric, forge ] +# runs-on: ubuntu-latest +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 +# - name: Validate gradle wrapper +# uses: gradle/wrapper-validation-action@v1 +# - name: Setup JDK 17 +# uses: actions/setup-java@v3 +# with: +# distribution: 'temurin' +# java-version: 17 +# - name: Make gradle wrapper executable +# run: chmod +x ./gradlew +# - name: Setup ${{ matrix.minecraft }} ${{ matrix.loader }} +# run: ./gradlew setupLibrary -Pminecraft_version="${{ matrix.minecraft }}" +# - name: Build ${{ matrix.minecraft }} ${{ matrix.loader }} +# run: ./gradlew ${{ matrix.loader }}:build -Pminecraft_version="${{ matrix.minecraft }}" +# #- name: Capture release artifacts +# # uses: actions/upload-artifact@v3 +# # with: +# # name: Fabric&Forge Artifacts +# # path: build/release/ +# \ No newline at end of file