Skip to content

Commit

Permalink
Merge branch 'master' of github.com:AstarNetwork/Astar into feature/a…
Browse files Browse the repository at this point in the history
…ssets-call-runtime

# Conflicts:
#	runtime/local/src/lib.rs
#	runtime/shibuya/src/lib.rs
  • Loading branch information
PierreOssun committed Aug 15, 2023
2 parents e55f340 + af6bea7 commit edcc9c2
Show file tree
Hide file tree
Showing 150 changed files with 10,639 additions and 3,249 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: Checkout the source code
uses: actions/checkout@v3

Expand Down
27 changes: 18 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
- name: Copy zombinet testing binary
run: |
wget https://github.com/paritytech/zombienet/releases/download/v1.3.35/zombienet-linux-x64
wget https://github.com/paritytech/zombienet/releases/download/v1.3.63/zombienet-linux-x64
chmod +x ./zombienet-linux-x64
mv zombienet-linux-x64 rpc-tests/bin/zombienet-linux-x64
Expand Down 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

0 comments on commit edcc9c2

Please sign in to comment.