From f59bf263bfc702d5a88c026d1ad8998bdaec3862 Mon Sep 17 00:00:00 2001 From: "Michael D. Norman" Date: Sat, 8 Jan 2022 11:53:04 -0600 Subject: [PATCH] chore: add github action --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ build.gradle.kts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..88413a2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ '**' ] + +jobs: + build: + runs-on: ubuntu-latest + container: + image: openjdk:17.0.1-jdk + + steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Build with Gradle + uses: gradle/gradle-build-action@v2.1.0 + with: + arguments: build diff --git a/build.gradle.kts b/build.gradle.kts index 797e1ba..5053e20 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,7 +51,7 @@ val sourceJar by tasks.creating(Jar::class) { tasks.withType { kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "1.17" } }