From f39a37725f02352b53a3a2e61135e2948cac3e3f Mon Sep 17 00:00:00 2001 From: friendseeker <66892505+Friendseeker@users.noreply.github.com> Date: Sun, 31 Dec 2023 18:58:21 -0800 Subject: [PATCH] Run benchmarks in parallel --- .github/workflows/ci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfea4d686..20094e639 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: - os: ubuntu-latest java: 21 jobtype: 4 + - os: ubuntu-latest + java: 21 + jobtype: 5 runs-on: ${{ matrix.os }} steps: - name: Checkout @@ -46,18 +49,18 @@ jobs: shell: bash run: | sbt -v -Dfile.encoding=UTF-8 -Dsbt.supershell=never "crossTestBridges" "zincRoot/test" "zincScripted/Test/run" - - name: Build and test (Scalac) (3) + - name: Build and test (3) if: ${{ matrix.jobtype == 3 }} shell: bash run: | - sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Scalac.*" "runBenchmarks" - - name: Build and test (Shapeless) (3) - if: ${{ matrix.jobtype == 3 }} - shell: bash - run: | - sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Shapeless.*" "runBenchmarks" + sbt -v -Dfile.encoding=UTF-8 scalafmtCheckAll scalafmtSbtCheck - name: Build and test (4) if: ${{ matrix.jobtype == 4 }} shell: bash run: | - sbt -v -Dfile.encoding=UTF-8 scalafmtCheckAll scalafmtSbtCheck + sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Scalac.*" "runBenchmarks" + - name: Build and test (5) + if: ${{ matrix.jobtype == 5 }} + shell: bash + run: | + sbt -v -Dfile.encoding=UTF-8 "-Dbenchmark.pattern=.*Shapeless.*" "runBenchmarks"