Skip to content

Commit

Permalink
Merge pull request #424 from Hexworks/add-korge-renderer.fix
Browse files Browse the repository at this point in the history
Adds github workflows, fixes compilation and jvm version errors
  • Loading branch information
adam-arold authored Jan 23, 2024
2 parents 893f26e + 2d46aca commit 1e3cb53
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
File renamed without changes.
29 changes: 29 additions & 0 deletions .github/workflows/TEST.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: TEST

on:
push:
branches: [ "master", "main" ]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CI: true
DISPLAY: ":99"
JAVA_VERSION: 11
JAVA_DISTRIBUTION: zulu

jobs:
test:
timeout-minutes: 25
runs-on: ubuntu-latest
steps:
- { uses: actions/checkout@v3 }
- { name: Set up JDK, uses: actions/setup-java@v3, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } }
- { name: Prepare Gradle, uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc } # v2.8.0
- { name: Initialize Gradle, run: ./gradlew }
- { name: Gradle Test JVM, run: ./gradlew jvmTest }
- { name: Gradle Test JS, run: ./gradlew jsTest }
#- { name: Gradle Sonarqube, run: ./gradlew sonarqube, if: false }
10 changes: 9 additions & 1 deletion zircon.core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ plugins {
id("signing")
}

val javaVersion = JavaVersion.VERSION_11

java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}

kotlin {

jvm {
Expand All @@ -26,7 +33,8 @@ kotlin {
kotlinOptions {
apiVersion = "1.9"
languageVersion = "1.9"
jvmTarget = "15"
jvmTarget = javaVersion.toString()

}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class BaseApplication<R : Any, A : Application, V>(
delay(renderIntervalMs - elapsedTimeMs)
}
} catch (e: Exception) {
logger.error(e) { "Render failed" }
logger.error({ "Render failed" }, e)
}
}
}
Expand Down

0 comments on commit 1e3cb53

Please sign in to comment.