Update .github/workflows/build.yml
All checks were successful
build / build (16, ubuntu-20.04) (push) Successful in 1m54s
All checks were successful
build / build (16, ubuntu-20.04) (push) Successful in 1m54s
This commit is contained in:
parent
ccf9d07a27
commit
0040f40c2d
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user