aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-26 22:38:14 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-26 22:45:39 +0100
commitc04359b5e9bbfd50926d45321b6e7b3fdeae6e87 (patch)
treef860e1cd8cdb95f0b8941939aa27a9c907ec5004
parent2c4ec2225d9b7ceae1d7aafc7b0a929661072ec9 (diff)
downloadreproduction-infinite-compile-c04359b5e9bbfd50926d45321b6e7b3fdeae6e87.tar.gz
reproduction-infinite-compile-c04359b5e9bbfd50926d45321b6e7b3fdeae6e87.tar.bz2
reproduction-infinite-compile-c04359b5e9bbfd50926d45321b6e7b3fdeae6e87.zip
Add multiple kotlin versions as test
-rw-r--r--.github/workflows/build.yml5
-rw-r--r--README.txt3
-rw-r--r--build.gradle.kts2
3 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e1f2d21..6682a68 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,6 +2,9 @@ on:
- push
jobs:
compile:
+ strategy:
+ matrix:
+ kotlin-version: ["2.0.20", "2.0.21", "2.1.0-RC2", "1.9.25"]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 for x64
@@ -12,6 +15,8 @@ jobs:
- uses: gradle/actions/setup-gradle@v4
- run: |
./gradlew build
+ env:
+ KOTLIN_VERSION: ${{ matrix.kotlin-version }}
name: This will infinitely hang
runs-on: ubuntu-latest
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..d847e10
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,3 @@
+Minimal (ish) reproduction for an infinite loop in the kotlin compiler.
+
+I first encountered this issue in \ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
index 6bc2c81..fafc7e1 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,5 +1,5 @@
plugins {
- kotlin("jvm") version "2.0.20"
+ kotlin("jvm") version (System.getenv("KOTLIN_VERSION") ?: "2.0.20")
}
group = "moe.nea"