Skip to content

1.20.2 Port (#16)

1.20.2 Port (#16) #35

Workflow file for this run

name: Gradle Build
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
java: [ 17, 21 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build --parallel --stacktrace
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/heads/dev/') && !startsWith(github.ref, 'refs/tags/v') }}
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: ./build/libs/