diff --git a/.github/workflows/run_benches.yml b/.github/workflows/run_benches.yml index 3b7e9640763b..29fdf2056f05 100644 --- a/.github/workflows/run_benches.yml +++ b/.github/workflows/run_benches.yml @@ -50,7 +50,7 @@ jobs: run: cargo +stable bench --manifest-path diesel_bench/Cargo.toml --no-default-features --features "${{ matrix.backend }}" > pr_${{ matrix.backend }}.txt - name: Upload PR ${{ matrix.backend }} Benchmark Results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: pr_${{ matrix.backend }}.txt path: ./pr_${{ matrix.backend }}.txt @@ -65,13 +65,13 @@ jobs: run: cargo +stable bench --manifest-path diesel_bench/Cargo.toml --no-default-features --features "${{ matrix.backend }}" > base_${{ matrix.backend }}.txt - name: Upload base ${{ matrix.backend }} Benchmark Results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: base_${{ matrix.backend }}.txt path: ./base_${{ matrix.backend }}.txt - name: Upload GitHub Event - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: event.json + name: event_${{ matrix.backend }}.json path: ${{ github.event_path }} diff --git a/.github/workflows/track_benches.yml b/.github/workflows/track_benches.yml index 048e4379ec68..77965d353dc3 100644 --- a/.github/workflows/track_benches.yml +++ b/.github/workflows/track_benches.yml @@ -20,7 +20,7 @@ jobs: BENCHER_TESTBED: ubuntu-latest-${{ matrix.backend }} PR_BENCHMARK_RESULTS: pr_${{ matrix.backend }}.txt BASE_BENCHMARK_RESULTS: base_${{ matrix.backend }}.txt - GITHUB_EVENT: event.json + GITHUB_EVENT: event_${{ matrix.backend }}.json steps: - name: Download Benchmark Results uses: actions/github-script@v6 @@ -60,7 +60,7 @@ jobs: with: script: | let fs = require('fs'); - let githubEvent = JSON.parse(fs.readFileSync(process.env.GITHUB_EVENT, {encoding: 'utf8'})); + let githubEvent = JSON.parse(fs.readFileSync("event.json", {encoding: 'utf8'})); console.log(githubEvent); core.exportVariable("PR_HEAD", `${githubEvent.pull_request.head.ref}-${githubEvent.pull_request.head.sha.slice(0, 8)}`); core.exportVariable("PR_ID", `${githubEvent.pull_request.head.ref}/${process.env.BENCHER_TESTBED}/${process.env.BENCHER_ADAPTER}`);