Skip to content

Commit

Permalink
Bump GHA Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Dec 19, 2023
1 parent a33fc07 commit 5ed362c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run_benches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/track_benches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}`);
Expand Down

0 comments on commit 5ed362c

Please sign in to comment.