Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): temporarily disable compiling Kotlin scripts #1498

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading