Skip to content

Commit

Permalink
fix(ci): temporarily disable compiling Kotlin scripts (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Jun 14, 2024
1 parent d676bcf commit 14612bf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 39 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/build.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 14612bf

Please sign in to comment.