diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48f6c91..c55a34c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,11 +11,9 @@ jobs: strategy: matrix: # Use these Java versions - java: [ - 16 # Minimum supported by Minecraft - ] + java: [16] # and run on both Linux and Windows - os: [ubuntu-20.04, windows-latest] + os: [ubuntu-20.04] runs-on: ${{ matrix.os }} steps: - name: checkout repository @@ -27,13 +25,11 @@ jobs: with: java-version: ${{ matrix.java }} - name: make gradle wrapper executable - if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlew - name: build run: ./gradlew build - name: capture build artifacts - if: ${{ runner.os == 'Linux' && matrix.java == '16' }} # Only upload artifacts built from latest java on one OS - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Artifacts path: build/libs/