From ed46a413d7e4be7b6d6a95871c62b64cee146846 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 14 Jun 2024 08:38:05 +0200 Subject: [PATCH] fix(ci): temporarily disable compiling Kotlin scripts --- .github/workflows/build.main.kts | 41 ++++++++++++++++---------------- .github/workflows/build.yaml | 19 --------------- 2 files changed, 21 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build.main.kts b/.github/workflows/build.main.kts index d34f93d17..986021767 100755 --- a/.github/workflows/build.main.kts +++ b/.github/workflows/build.main.kts @@ -91,26 +91,27 @@ workflow( run(command = "mkdocs build --site-dir public") } - job( - id = "build_kotlin_scripts", - name = "Build Kotlin scripts", - runsOn = UbuntuLatest, - ) { - uses(action = Checkout()) - run( - command = """ - find -name *.main.kts -print0 | while read -d ${'$'}'\0' file - do - if [ "${'$'}file" = "./.github/workflows/end-to-end-tests.main.kts" ]; then - continue - fi - - echo "Compiling ${'$'}file..." - kotlinc -Werror -Xallow-any-scripts-in-source-roots "${'$'}file" - done - """.trimIndent() - ) - } +// Doesn't work due to https://youtrack.jetbrains.com/issue/KT-68681, likely going to be fixed in Kotlin 2.0.10. +// job( +// id = "build_kotlin_scripts", +// name = "Build Kotlin scripts", +// runsOn = UbuntuLatest, +// ) { +// uses(action = Checkout()) +// run( +// command = """ +// find -name *.main.kts -print0 | while read -d ${'$'}'\0' file +// do +// if [ "${'$'}file" = "./.github/workflows/end-to-end-tests.main.kts" ]; then +// continue +// fi +// +// echo "Compiling ${'$'}file..." +// kotlinc -Werror -Xallow-any-scripts-in-source-roots "${'$'}file" +// done +// """.trimIndent() +// ) +// } job( id = "workflows_consistency_check", diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 790f9630a..5be8394b3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -121,25 +121,6 @@ jobs: run: 'pip install -r docs/requirements.txt' - id: 'step-3' run: 'mkdocs build --site-dir public' - build_kotlin_scripts: - name: 'Build Kotlin scripts' - runs-on: 'ubuntu-latest' - needs: - - 'check_yaml_consistency' - steps: - - id: 'step-0' - uses: 'actions/checkout@v4' - - id: 'step-1' - run: |- - find -name *.main.kts -print0 | while read -d $'\0' file - do - if [ "$file" = "./.github/workflows/end-to-end-tests.main.kts" ]; then - continue - fi - - echo "Compiling $file..." - kotlinc -Werror -Xallow-any-scripts-in-source-roots "$file" - done workflows_consistency_check: name: 'Run consistency check on all GitHub workflows' runs-on: 'ubuntu-latest'