Skip to content

Commit

Permalink
Cleaned up build.yml
Browse files Browse the repository at this point in the history
Reverted to Java 17
  • Loading branch information
TechPizzaDev authored Oct 16, 2023
1 parent d67ca6a commit 10dae27
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,34 @@ jobs:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS & minimum supported by Minecraft
17, # LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- name: checkout repository
uses: actions/checkout@v3

- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
cache: 'gradle'

- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew

- name: build
run: ./gradlew build
run: ./gradlew build --no-daemon

- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
if: ${{ runner.os == 'Linux' && matrix.java == '21' }}
uses: actions/upload-artifact@v3
with:
name: Artifacts
Expand Down

0 comments on commit 10dae27

Please sign in to comment.