summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-03-17 23:11:06 +0800
committerKeuin <[email protected]>2022-03-17 23:11:06 +0800
commit2d328cba159b13a6c00c164f590079c8a8899e6c (patch)
treeef68d9c8f690ccc2385a40535768888f404d570b
parent5c344cd9f33d3781270bb573a0d09afb9ab1c206 (diff)
Github Action: fix JDK versionHEADmaster
-rw-r--r--.github/workflows/build.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 19f3cd4..ab36466 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -12,9 +12,7 @@ jobs:
matrix:
# Use these Java versions
java: [
- 1.8, # Minimum supported by Minecraft
- 11, # Current Java LTS
- 15 # Latest version
+ 17
]
# and run on both Linux and Windows
os: [ ubuntu-20.04, windows-latest ]
@@ -34,7 +32,7 @@ jobs:
- 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' && matrix.java == '17' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@v2
with:
name: Artifacts