From db576e31f77d46a74a247d609c9bc86a11f15b28 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 21 Jan 2021 12:12:43 +0000 Subject: [PATCH] CI: Update benchmarks runner --- .github/workflows/bench.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 43cad43b..d4a40c2a 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -21,13 +21,9 @@ jobs: - uses: actions/checkout@v2 - name: Run benchmarks run: | - # run benchmarks and save baseline to "criterion.dev.temp" - cargo bench -- --verbose --noplot --save-baseline criterion.dev.temp - - # set the path to the file to upload to criterion.dev - echo "::set-env name=CRITERION_FILE_PATH::$(find $(find . -type d -name criterion.dev.temp) -name raw.csv)" + # run benchmarks and save baseline in a directory called "new" + cargo bench -- --verbose - name: Upload benchmarks run: | - # upload the file - curl -F 'raw.csv=@${{ env.CRITERION_FILE_PATH }}' \ - 'https://api.criterion.dev/v1/${{ github.repository }}/measurements?token=${{ secrets.CRITERION_TOKEN }}&commit=${{ github.sha }}' + # upload the files + bash <(curl -s https://criterion.dev/bash)