From f8c6d7ed7f2079cf272baa1311bc0c3080cd2af4 Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:09:33 -0400 Subject: [PATCH] f --- .github/workflows/merge-tests.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/merge-tests.yml b/.github/workflows/merge-tests.yml index 4ec5ff4fa5..22ed502475 100644 --- a/.github/workflows/merge-tests.yml +++ b/.github/workflows/merge-tests.yml @@ -98,24 +98,26 @@ jobs: with: ref: master path: master + - run: ls -a master + - run: ls -a master/benches # Copy the script so the base can bench with the same parameters - name: Copy source script to base branch - run: | - cd benches - cp justfile bench.env ../master/benches + run: cd benches && cp justfile bench.env ../master/benches + - run: ls -a master + - run: ls -a master/benches - name: Set base ref variable - run: | - cd master - echo "BASE_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV - echo ${{ env.BASE_REF }} + run: cd master && echo "BASE_REF=$(git rev-parse HEAD)" >> $GITHUB_ENV + - run: echo ${{ env.BASE_REF }} - name: Run GPU bench on base branch - run: | - cd master/benches && just --dotenv-filename bench.env gpu-bench fibonacci_lem - cd .. && cp ${{ env.BASE_REF }}.json .. + run: cd master/benches && just --dotenv-filename bench.env gpu-bench fibonacci_lem + - run: ls -a master + - run: ls -a master/benches + - name: Copy bench output to PR branch + run: cp master/${{ env.BASE_REF }}.json . - name: Run GPU bench on PR branch - run: | - cd benches - just --dotenv-filename bench.env gpu-bench fibonacci_lem + run: cd benches && just --dotenv-filename bench.env gpu-bench fibonacci_lem + - run: ls -a . + - run: ls -a benches # Create a `criterion-table` and write in commit comment - name: Run `criterion-table` run: cat ${{ github.sha }}.json | criterion-table > BENCHMARKS.md