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 version to tracing runtimes #995

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Changes from all commits
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
25 changes: 17 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ jobs:
chain=${{ matrix.chain }}
runtime_version=$(cat $chain-compressed-info.json | jq '.core_version' | tr -d '"' | cut -d ' ' -f 1)
echo $runtime_version
echo "::set-output name=runtime_version::$runtime_version"
echo "runtime=$(echo $runtime_version)" >> $GITHUB_ENV
echo "${{ matrix.chain }}=$(echo $runtime_version)" >> $GITHUB_OUTPUT

- name: Upload ${{ matrix.chain }} Wasm
uses: actions/upload-release-asset@v1
Expand All @@ -476,7 +477,7 @@ jobs:
with:
upload_url: ${{ needs.publish-release-draft.outputs.upload_url }}
asset_path: ${{ matrix.chain }}_runtime.compact.compressed.wasm
asset_name: ${{ steps.get-runtime-version.outputs.runtime_version }}.wasm
asset_name: ${{ env.runtime }}.wasm
asset_content_type: application/wasm

- name: Upload ${{ matrix.chain }} Metadata
Expand Down Expand Up @@ -509,20 +510,20 @@ jobs:
asset_name: ${{ matrix.chain }}-srtool-digest.json
asset_content_type: application/json

outputs:
astar_runtime_version: ${{ steps.get-runtime-version.outputs.astar }}
shiden_runtime_version: ${{ steps.get-runtime-version.outputs.shiden }}
shibuya_runtime_version: ${{ steps.get-runtime-version.outputs.shibuya }}

upload-evm-tracing-artifacts:
needs: publish-release-draft
needs: [publish-release-draft,upload-runtimes]
runs-on: ubuntu-latest
steps:
- name: Download pre-built collator binary for evm tracing
uses: actions/download-artifact@v3
with:
name: astar-evm-tracing-ubuntu-latest-x86_64-unknown-linux-gnu
path: evm-tracing-artifacts

- name: Make evm tracing binary executable and tar gzip
run: |
cd evm-tracing-artifacts
chmod +x astar-collator

- name: Download evm tracing runtime
uses: actions/download-artifact@v3
Expand All @@ -542,6 +543,14 @@ jobs:
name: shibuya-evm-tracing-runtime
path: evm-tracing-artifacts

- name: Make evm tracing binary executable and rename
run: |
cd evm-tracing-artifacts
chmod +x astar-collator
mv astar_evm_tracing_runtime.compact.compressed.wasm ${{needs.upload-runtimes.outputs.astar_runtime_version}}_evm_tracing_runtime.compact.compressed.wasm
mv shiden_evm_tracing_runtime.compact.compressed.wasm ${{needs.upload-runtimes.outputs.shiden_runtime_version}}_evm_tracing_runtime.compact.compressed.wasm
mv shibuya_evm_tracing_runtime.compact.compressed.wasm ${{needs.upload-runtimes.outputs.shibuya_runtime_version}}_evm_tracing_runtime.compact.compressed.wasm

- name: Compress folder
run: |
tar zcvf evm-tracing-artifacts.tar.gz evm-tracing-artifacts
Expand Down
Loading