Skip to content

Acala & Karura 2.25.0 #16

Acala & Karura 2.25.0

Acala & Karura 2.25.0 #16

Workflow file for this run

name: Build and publish evm tracing runtime
on:
release:
types: [published]
# Allow manual trigger for old releases
workflow_dispatch:
inputs:
# Branch with old release + tracing feature
branch:
description: Branch to build tracing runtime
required: true
type: string
# Set the tag to publish the tracing runtime
tag:
description: Existing tag to publish tracing runtime. i.e. 1.0.0
required: true
type: string
env:
SUBWASM_VERSION: 0.20.0
jobs:
build-runtime:
name: "Build evm tracing runtime ${{ matrix.network }}"
permissions:
contents: write
runs-on: ubuntu-latest
strategy:
matrix:
network: [karura, acala]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || github.ref }}
submodules: recursive
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Setup cmake
uses: jwlawson/[email protected]
- name: Install subwasm ${{ env.SUBWASM_VERSION }}
run: |
wget https://github.com/chevdor/subwasm/releases/download/v${{ env.SUBWASM_VERSION }}/subwasm_linux_amd64_v${{ env.SUBWASM_VERSION }}.deb
sudo dpkg -i subwasm_linux_amd64_v${{ env.SUBWASM_VERSION }}.deb
subwasm --version
- name: Build
run: make build-wasm-${{ matrix.network }}-tracing
- name: Find spec version
run: |
SPEC_VERSION=`subwasm version -j target/production/wbuild/${{ matrix.network }}-runtime/${{ matrix.network }}_runtime.compact.compressed.wasm | jq .specVersion`
cp target/production/wbuild/${{ matrix.network }}-runtime/${{ matrix.network }}_runtime.compact.compressed.wasm ${{ matrix.network }}_runtime_tracing_$SPEC_VERSION.compact.compressed.wasm
echo "SPEC_VERSION=$SPEC_VERSION" >> $GITHUB_ENV
- name: Upload tracing runtime
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.event.inputs.tag }}
files: ${{ matrix.network }}_runtime_tracing_${{ env.SPEC_VERSION }}.compact.compressed.wasm