Skip to content

Commit 1d93ec7

Browse files
bkonturclaude
andauthored
Add polkadot-bulletin-chain binary to release workflow (#190)
* Add polkadot-bulletin-chain binary to release workflow Build the node binary with production profile and include it in the GitHub release assets alongside the runtime WASMs. Co-Authored-By: Claude Opus 4.5 <[email protected]> * Fix --------- Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 4b810a7 commit 1d93ec7

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,36 @@ jobs:
4747
${{ steps.srtool_build.outputs.wasm_compressed }}
4848
${{ matrix.name }}_srtool_output.json
4949
50+
build-node:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
56+
- name: Install Rust toolchain
57+
uses: dtolnay/rust-toolchain@stable
58+
with:
59+
targets: wasm32-unknown-unknown
60+
components: rust-src
61+
62+
- name: Install system dependencies
63+
run: |
64+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/azure-cli.list
65+
sudo apt-get update
66+
sudo apt-get install -y protobuf-compiler libclang-dev
67+
68+
- name: Build polkadot-bulletin-chain binary
69+
run: cargo build --profile production -p polkadot-bulletin-chain
70+
71+
- name: Upload polkadot-bulletin-chain binary
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: polkadot-bulletin-chain
75+
path: target/production/polkadot-bulletin-chain
76+
5077
publish-release:
5178
runs-on: ubuntu-latest
52-
needs: build-runtimes
79+
needs: [build-runtimes, build-node]
5380
steps:
5481
- name: Checkout
5582
uses: actions/checkout@v4
@@ -63,6 +90,7 @@ jobs:
6390
run: |
6491
mkdir -p release-assets
6592
find artifacts -name "*.wasm" -exec cp {} release-assets/ \;
93+
cp artifacts/polkadot-bulletin-chain/polkadot-bulletin-chain release-assets/
6694
ls -la release-assets/
6795
6896
- name: Add runtime info to changelog
@@ -98,5 +126,7 @@ jobs:
98126
- name: Create release
99127
uses: softprops/action-gh-release@v2
100128
with:
101-
files: release-assets/*.wasm
129+
files: |
130+
release-assets/*.wasm
131+
release-assets/polkadot-bulletin-chain
102132
body_path: RELEASE_NOTES.md

0 commit comments

Comments
 (0)