-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
if: ${{ github.event.issue.pull_request && contains(fromJson('["MEMBER", "OWNER"]'), github.event.comment.author_association) && startsWith(github.event.comment.body, '/bench ') }} | ||
runs-on: [self-hosted, linux] | ||
steps: | ||
- uses: actions/github-script@v6 | ||
- uses: actions/github-script@v7 | ||
name: Get PR branch | ||
id: issue | ||
with: | ||
|
@@ -30,7 +30,7 @@ jobs: | |
with: | ||
submodules: recursive | ||
ref: ${{ fromJson(steps.issue.outputs.result).sha }} | ||
- uses: actions/github-script@v6 | ||
- uses: actions/github-script@v7 | ||
name: Prepare command | ||
id: command | ||
with: | ||
|
@@ -54,7 +54,7 @@ jobs: | |
default: | ||
throw new Error('Invalid command') | ||
} | ||
- uses: actions/github-script@v6 | ||
- uses: actions/github-script@v7 | ||
name: Post comment | ||
id: comment | ||
with: | ||
|
@@ -71,7 +71,7 @@ jobs: | |
` | ||
}) | ||
return data.data.id | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
|
@@ -82,13 +82,15 @@ jobs: | |
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Install weight-gen | ||
run: cargo install --git https://github.com/open-web3-stack/wasm-bencher.git --bin weight-gen --force | ||
run: cargo install --git https://github.com/open-web3-stack/wasm-bencher.git --bin weight-gen | ||
- name: Install omni-bencher | ||
run: cargo install frame-omni-bencher | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
node-version: 20.x | ||
- name: Run benchmarks | ||
run: ${{steps.command.outputs.result}} > ${{runner.temp}}/out.txt | ||
- name: Commit | ||
|
@@ -98,7 +100,7 @@ jobs: | |
git add . | ||
git commit -m '${{github.event.comment.body}}' --allow-empty | ||
git push origin HEAD:${{ fromJson(steps.issue.outputs.result).ref }} | ||
- uses: actions/github-script@v6 | ||
- uses: actions/github-script@v7 | ||
name: Update comment | ||
with: | ||
script: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters