Skip to content

fix: allow more customisation for consistency #150

fix: allow more customisation for consistency

fix: allow more customisation for consistency #150

Workflow file for this run

name: Build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17', '21' ] # LTS Versions
name: Build Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK & Gradle
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew --no-daemon clean build
- name: Cleanup Gradle Cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- id: get-id
uses: actions/github-script@v7
with:
script: return (context.payload.after.substring(0,7))
result-encoding: string
- uses: actions/upload-artifact@v4
with:
name: Artifacts-${{ steps.get-id.outputs.result }}_(Java${{ matrix.java }})
path: |
jars/*.jar