Skip to content

chore: finalise 2.0.7 #143

chore: finalise 2.0.7

chore: finalise 2.0.7 #143

Workflow file for this run

name: Build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17' ] # LTS Versions
name: Build Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK & Gradle
uses: actions/setup-java@v2
with:
java-version: 8
distribution: zulu
- name: Cache Gradle packages
uses: actions/cache@v2
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/[email protected]
with:
script: return (context.payload.after.substring(0,7))
result-encoding: string
- uses: actions/upload-artifact@v2
with:
name: Artifacts-${{ steps.get-id.outputs.result }}_(Java${{ matrix.java }})
path: |
jars/*.jar