Skip to content

Commit

Permalink
Merge branch 'master' into cmd-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich authored Jun 10, 2024
2 parents 6e56757 + 547e31a commit 07935ad
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/command-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ on:
- substrate
- polkadot
- cumulus
runtime_dir:
description: Runtime directory
type: choice
options:
- people
- collectives
- coretime
- bridge-hubs
- contracts
- glutton
- starters
- testing


jobs:
set-image:
Expand Down Expand Up @@ -90,7 +103,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
- name: Run bench
run: |
"./scripts/bench.sh" "${{ inputs.benchmark }}" --runtime "${{ inputs.runtime }}" --pallet "${{ inputs.pallet }}" --target_dir "${{ inputs.target_dir }}" --subcommand "${{ inputs.subcommand }}"
"./scripts/bench.sh" "${{ inputs.benchmark }}" --runtime "${{ inputs.runtime }}" --pallet "${{ inputs.pallet }}" --target_dir "${{ inputs.target_dir }}" --subcommand "${{ inputs.subcommand }}" --runtime_dir "${{ inputs.runtime_dir }}"
- name: Report failure
if: ${{ failure() }}
run: gh pr comment ${{ inputs.pr }} --body "<h2>Command failed ❌</h2> Run by @${{ github.actor }} for <code>${{ github.workflow }}</code> failed. See logs <a href=\"$RUN\">here</a>."
Expand Down
2 changes: 0 additions & 2 deletions scripts/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
set -eu -o pipefail
shopt -s inherit_errexit

ARTIFACTS_DIR="$PWD/.git/.artifacts"

# realpath allows to reuse the current
BENCH_ROOT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")

Expand Down
2 changes: 2 additions & 0 deletions scripts/command-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ else
export LOADED_UTILS_SH=true
fi

export ARTIFACTS_DIR="$PWD/.git/.artifacts"

die() {
if [ "${1:-}" ]; then
>&2 echo "$1"
Expand Down

0 comments on commit 07935ad

Please sign in to comment.