From d8279972cad49b4b5852a62095a3c066eddc1d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Mon, 24 Nov 2025 08:22:37 +0100 Subject: [PATCH 1/2] Do not treat warnings as errors when compiling Kotlin scripts --- .github/workflows/test.main.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.main.kts b/.github/workflows/test.main.kts index 3cb96ff..3b5d1c7 100755 --- a/.github/workflows/test.main.kts +++ b/.github/workflows/test.main.kts @@ -66,7 +66,7 @@ workflow( find -name *.main.kts -print0 | while read -d ${'$'}'\0' file do echo "Compiling ${'$'}file..." - kotlinc -Werror -Xallow-any-scripts-in-source-roots -Xuse-fir-lt=false "${'$'}file" + kotlinc -Xallow-any-scripts-in-source-roots -Xuse-fir-lt=false "${'$'}file" done """.trimIndent() ) From 27d7f661ee883a660049d79bbde48636f7ef6aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Mon, 24 Nov 2025 08:23:06 +0100 Subject: [PATCH 2/2] Update kotlinc command in test.yaml Removed the -Werror flag from the kotlinc command. --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3239bcc..e0b95bc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,7 +37,7 @@ jobs: find -name *.main.kts -print0 | while read -d $'\0' file do echo "Compiling $file..." - kotlinc -Werror -Xallow-any-scripts-in-source-roots -Xuse-fir-lt=false "$file" + kotlinc -Xallow-any-scripts-in-source-roots -Xuse-fir-lt=false "$file" done validate_typings: name: 'Validate typings'