This commit is contained in:
zly2006 committed 2024-07-11 12:14:02 +08:00
1 parent 4ba22176bc
commit 07596c15c7
1 file changed
+2 -4
+2 -4
View File
@@ -12,10 +12,9 @@ jobs:
matrix: matrix:
# Use these Java versions # Use these Java versions
java: [ java: [
17, # Current Java LTS & minimum supported by Minecraft 21
] ]
# and run on both Linux and Windows os: [ubuntu-20.04]
os: [ubuntu-20.04, windows-2022]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: checkout repository - name: checkout repository
@@ -32,7 +31,6 @@ jobs:
- name: build - name: build
run: ./gradlew build run: ./gradlew build
- name: capture build artifacts - name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: Artifacts name: Artifacts