Skip to content

Commit

Permalink
Always run task
Browse files Browse the repository at this point in the history
  • Loading branch information
chippmann committed May 18, 2024
1 parent cc74b85 commit 5bba90e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harness/benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ tasks {
group = "validation"
dependsOn(importResources, compileKotlin)

outputs.upToDateWhen { false }

isIgnoreExitValue = true

val editorExecutable: String = projectDir
Expand Down Expand Up @@ -76,9 +78,10 @@ tasks {
dependsOn(runBenchmarks)

doLast {
val benchmarkResultsFile = project.file("benchmark-results.json")
val benchmarkResultsFile = projectDir.resolve("benchmark-results.json")

if (!benchmarkResultsFile.exists()) {
println(projectDir.listFiles().toList())
throw IllegalStateException("Cannot upload $benchmarkResultsFile as it does not exist. Make sure you ran ${runBenchmarks.name} first")
}

Expand Down

0 comments on commit 5bba90e

Please sign in to comment.