Skip to content

Improve github build infra (#18) #3

Improve github build infra (#18)

Improve github build infra (#18) #3

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
workflow_call:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 # TODO: check Java version
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build
- uses: actions/upload-artifact@v4
with:
path: build/libs/*.jar
name: build
retention-days: 7