Skip to content

Commit

Permalink
Add version to tracing runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
bLd75 committed Aug 4, 2023
1 parent 79d4568 commit 5418144
Showing 1 changed file with 17 additions and 8 deletions.
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

0 comments on commit 5418144

Please sign in to comment.