diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c37ec57..7b98dd2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,6 @@ jobs: build: strategy: matrix: - # Use these Java versions - java: [ - 1.8, # Minimum supported by Minecraft - 11, # Current Java LTS - 15 # Latest version FIXME gradle broken in jvm >=14 - ] # and run on both Linux, Windows, and Mac os: [ubuntu-20.04, windows-latest] runs-on: ${{ matrix.os }} @@ -24,17 +18,17 @@ jobs: uses: actions/checkout@v2 - name: validate gradle wrapper uses: gradle/wrapper-validation-action@v1 - - name: setup jdk ${{ matrix.java }} + - name: setup jdk 16 uses: actions/setup-java@v1 with: - java-version: ${{ matrix.java }} + java-version: 16 - 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 == '11' }} # Only upload artifacts built from LTS java on one OS + if: ${{ runner.os == 'Linux' }} # Only upload artifacts built from LTS java on one OS uses: actions/upload-artifact@v2 with: name: Artifacts