Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Oct 31, 2023
1 parent cca5a61 commit f8c6d7e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/merge-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8c6d7e

Please sign in to comment.