Skip to content

Commit

Permalink
* Added missing protoc step for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DidacSF committed May 27, 2024
1 parent 9b813a0 commit b2fae74
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Fetch cache
uses: Swatinem/rust-cache@v2
with:
Expand Down Expand Up @@ -248,28 +251,28 @@ jobs:
CONTEXT=$(find . -name '*_srtool_output.json')
SRTOOL() { <$(<<<$CONTEXT head -n1) jq -r .$1; }
WASM() { <${JSON} jq -r ".runtimes.compressed.subwasm.$1"; }
touch DRAFT
tee -a DRAFT <<-EOF
# Runtime info
*These runtimes were built with **$(SRTOOL rustc)** using **[$(SRTOOL gen)](https://github.com/paritytech/srtool)***
\`\`\`sh
srtool build
--root --profile production
--package CRATE_NAME --runtime-dir PATH_TO_CRATE
\`\`\`
EOF
for JSON in $(<<<$CONTEXT sort -sr)
do
SPEC_NAME=$(WASM 'core_version.specName')
HEADING=$(WASM 'core_version.specName / "-" | map(. / "" | first |= ascii_upcase | add) | join(" ")')
tee -a DRAFT <<-EOF
## $HEADING
~~~
🏋️ Runtime Size: $(numfmt --to iec-i --format "%.2f" $(WASM size)) ($(WASM size) bytes)
Expand Down Expand Up @@ -323,4 +326,4 @@ jobs:
upload_url: ${{ needs.publish-release.outputs.asset_upload_url }}
asset_path: "${{ matrix.runtime }}-runtime-${{ github.sha }}/${{ matrix.runtime }}_runtime.compact.compressed.wasm"
asset_name: ${{ matrix.runtime }}_runtime-v${{ env.SPEC }}.compact.compressed.wasm
asset_content_type: application/wasm
asset_content_type: application/wasm

0 comments on commit b2fae74

Please sign in to comment.