Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add step to Build workflow to check for WASM runtime sizes #2888

Merged
merged 22 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
download from release instead of workflow artifact
  • Loading branch information
pLabarta committed Aug 1, 2024
commit 75bde94b4bd07d477a657d6c98328bb9a7af250f
16 changes: 7 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,17 +378,15 @@ jobs:
- name: Fetch latest release tag
id: fetch_latest_release
run: |
: # LATEST_RELEASE_TAG=$(git tag -l 'runtime-*' | sort -V | tail -n 1)
LATEST_RELEASE_TAG=runtime-2400
LATEST_RELEASE_TAG=$(git tag -l 'runtime-*' | sort -V | tail -n 1)
echo "LATEST_RELEASE_TAG=$LATEST_RELEASE_TAG" >> $GITHUB_ENV
- name: Checkout latest release
uses: actions/checkout@v4
with:
ref: ${{ env.LATEST_RELEASE_TAG }}
- name: Download latest release artifacts
- name: Lookup for latest release build
run: |
LATEST_RELEASE_BUILD=$(gh run -R moonbeam-foundation/moonbeam list -w Build --limit=100 --json databaseId,url,headBranch,event,status,conclusion,createdAt --jq ".[] | select(.headBranch == \"$LATEST_RELEASE_TAG\" and .event == \"push\" and .status == \"completed\" and .conclusion == \"success\") | .databaseId" | head -n 1)
echo "LATEST_RELEASE_BUILD=$LATEST_RELEASE_BUILD" >> $GITHUB_OUTPUT
- name: Download latest release build artifacts
run: |
gh run download -n uncompressed-runtimes --dir uncompressed-runtimes-latest-release
gh run download -n runtimes --dir runtimes-latest-release
gh release download $LATEST_RELEASE_TAG -R moonbeam-foundation/moonbeam -p "moonbeam-runtime-3100.wasm" -p "moonbase-runtime-3100.wasm" -p "moonriver-runtime-3100.wasm" --dir runtimes-latest-release
- name: Check Runtimes size for latest release
run: |
LATEST_MOONBASE=$(du -k runtimes-latest-release/* | awk '/moonbase_runtime/ {print $1}')
Expand Down
Loading