Skip to content

Commit

Permalink
update gh action tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Mar 28, 2024
1 parent 901b0a8 commit 05db87d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tracing-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ on:
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: [self-hosted, linux]
runs-on: ubuntu-latest
strategy:
matrix:
network: [karura, acala]
Expand All @@ -44,7 +47,7 @@ jobs:
- 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
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
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ srtool-build-wasm-acala:

.PHONY: build-wasm-karura-tracing
build-wasm-karura-tracing:
./scripts/build-only-wasm.sh --profile production -p karura-runtime --features=on-chain-release-build,tracing
./scripts/build-only-wasm.sh --profile production -p karura-runtime --features=tracing

.PHONY: build-wasm-acala-tracing
build-wasm-acala-tracing:
./scripts/build-only-wasm.sh --profile production -p acala-runtime --features=on-chain-release-build,tracing
./scripts/build-only-wasm.sh --profile production -p acala-runtime --features=tracing

.PHONY: generate-tokens
generate-tokens:
Expand Down

0 comments on commit 05db87d

Please sign in to comment.