From 0e3ccedd9a26e885aee550baa5704ff34cea8384 Mon Sep 17 00:00:00 2001 From: friendseeker <66892505+Friendseeker@users.noreply.github.com> Date: Sat, 30 Dec 2023 17:44:49 -0800 Subject: [PATCH 1/2] Run benchmark against develop branch during PR --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4b04acca..bc8f2f972 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,16 @@ jobs: shell: bash run: | sbt -v -Dfile.encoding=UTF-8 "runBenchmarks" + - name: Checkout Develop Branch (3) + if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 3 }} + uses: actions/checkout@v4 + with: + ref: develop + - name: Build and test against Develop Branch (3) + if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 3 }} + shell: bash + run: | + sbt -v -Dfile.encoding=UTF-8 "runBenchmarks" - name: Build and test (4) if: ${{ matrix.jobtype == 4 }} shell: bash From 45d58ab7fb3ae20eac9d786a6c9d9608724d3a07 Mon Sep 17 00:00:00 2001 From: friendseeker <66892505+Friendseeker@users.noreply.github.com> Date: Sun, 31 Dec 2023 11:30:51 -0800 Subject: [PATCH 2/2] Tell actions/checkout@v4 to not force clean - takes advantage of incremental compilation - allows keeping temp files storing result in the future (hence we can analyze and automatically detect if there's regression) --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc8f2f972..4994bd001 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,7 @@ jobs: if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 3 }} uses: actions/checkout@v4 with: + clean: false ref: develop - name: Build and test against Develop Branch (3) if: ${{ github.event_name == 'pull_request' && matrix.jobtype == 3 }}