Skip to content

Commit

Permalink
use pandoc via docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Oct 10, 2023
1 parent a3f6ae7 commit 0b68755
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-func-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
with:
gradle-home-cache-cleanup: true
- name: Run
- name: Run functional tests
run: ./gradlew --quiet runFunctionalTests >> $GITHUB_STEP_SUMMARY
20 changes: 11 additions & 9 deletions .github/workflows/run-perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ jobs:
with:
java-version: '17'
distribution: 'adopt'
- name: Install pandoc # used for latex to markdown conversion
run: | # todo: drop this.
sudo apt-get update
sudo apt-get haskell-platform
- name: Setup Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
with:
gradle-home-cache-cleanup: true
- name: Run
run: |
./gradlew runBenchmarks
pandoc benchmark_results.csv -t gfm >> $GITHUB_STEP_SUMMARY
# todo: split into two steps and use docker
- name: Run performance benchmarks
run: ./gradlew runBenchmarks
- name: Convert results to markdown
uses: docker://pandoc/core:2.9
with:
args: >-
--to=gfm
--output=benchmark_results.md
benchmark_results.csv
- name: Upload results
run: cat benchmark_results.md >> $GITHUB_STEP_SUMMARY
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ tasks.register<JavaExec>("runBenchmarks") {
"-rf", "csv",
// To a named file
"-rff", "benchmark_results.csv"
// Todo: remove below:
,"-wi", "0",
"-i", "1",
"-t", "1",
"-r", "1s",
"-f", "0"
))
dependsOn(pullTask)
}
Expand Down

0 comments on commit 0b68755

Please sign in to comment.