-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
432100c
commit d3134db
Showing
19 changed files
with
1,208 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
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 | ||
|
||
jobs: | ||
build-runtime: | ||
name: "Build evm tracing runtime ${{ matrix.network }}" | ||
permissions: | ||
contents: write | ||
runs-on: [self-hosted, linux] | ||
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/actions-setup-cmake@v1.13 | ||
- 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 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ std = [ | |
"sp-core/std", | ||
"primitives/std", | ||
] | ||
tracing = ["primitives/tracing"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.