Skip to content

add github actions workflow for building #1

add github actions workflow for building

add github actions workflow for building #1

Workflow file for this run

name: Build Kotlin Project
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build on JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [17, 21]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew build