-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add new functions to benchmark workflow (#3253)
- Loading branch information
1 parent
6327b80
commit 607c4f4
Showing
5 changed files
with
84 additions
and
18 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Comparison table | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
runtime: | ||
description: For which runtime generate comparison table? | ||
required: true | ||
type: choice | ||
options: | ||
- gear | ||
- vara | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
TERM: xterm-256color | ||
|
||
jobs: | ||
comparison-table: | ||
runs-on: [kuberunner] | ||
env: | ||
RUSTUP_HOME: /tmp/rustup_home | ||
steps: | ||
- name: "ACTIONS: Checkout & fetch all history" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Install: Set cargo path" | ||
run: echo "/tmp/cargo/bin" >> $GITHUB_PATH | ||
|
||
- name: "Install: Rust toolchain" | ||
uses: dsherret/rust-toolchain-file@v1 | ||
|
||
- name: "Build: Init" | ||
run: ./scripts/gear.sh init cargo | ||
|
||
- name: "Generate comparison tables (${{ inputs.runtime }})" | ||
run: | | ||
./scripts/weight-diff.sh master $(git branch --show-current) ${{ inputs.runtime }} --display-units > ${{ inputs.runtime }}-tables.txt | ||
- name: "ACTIONS: Upload artifact with comparison tables (${{ inputs.runtime }})" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.runtime }}-tables | ||
path: ${{ inputs.runtime }}-tables.txt |
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