Update .github/workflows/build.yml
All checks were successful
build / build (16, ubuntu-20.04) (push) Successful in 1m55s

This commit is contained in:
TopchetoEU 2025-01-01 20:47:15 +00:00
parent bdb11c00a9
commit 5760fc358b

View File

@ -10,12 +10,8 @@ jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
16 # Minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-20.04, windows-latest]
java: [ 16 ]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
@ -27,12 +23,10 @@ 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@v3
with:
name: Artifacts