mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 05:37:58 +00:00
39266fc0f3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
74 lines
2.2 KiB
YAML
74 lines
2.2 KiB
YAML
name: Build Substrate and Polkadot Binaries
|
|
|
|
on:
|
|
# Allow it to be manually ran to rebuild binary when needed:
|
|
workflow_dispatch: {}
|
|
# Run at 2am every day for nightly builds.
|
|
schedule:
|
|
- cron: "0 2 * * *"
|
|
|
|
jobs:
|
|
tests:
|
|
name: Build Substrate and Polkadot Binaries
|
|
runs-on: parity-large
|
|
steps:
|
|
- name: checkout polkadot-sdk
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: paritytech/polkadot-sdk
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler curl gcc make clang cmake llvm-dev libclang-dev
|
|
|
|
- name: Install Rust v1.88 toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: 1.88
|
|
components: rust-src
|
|
target: wasm32-unknown-unknown
|
|
|
|
- name: Rust Cache
|
|
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
|
|
|
|
- name: build substrate binary
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --release --manifest-path substrate/bin/node/cli/Cargo.toml
|
|
|
|
- name: build polkadot binary
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --release --manifest-path polkadot/Cargo.toml
|
|
|
|
- name: Strip binaries
|
|
run: |
|
|
cargo install cargo-strip
|
|
cargo strip
|
|
|
|
- name: upload substrate binary
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: nightly-substrate-binary
|
|
path: target/release/substrate-node
|
|
retention-days: 2
|
|
if-no-files-found: error
|
|
|
|
# Note: Uncompressed polkadot binary is ~124MB -> too large for git (max 100MB) without git lfs. Compressed it is only ~45MB
|
|
- name: compress polkadot binary
|
|
run: |
|
|
tar -zcvf target/release/polkadot.tar.gz target/release/polkadot
|
|
|
|
- name: upload polkadot binary
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: nightly-polkadot-binary
|
|
path: |
|
|
target/release/polkadot.tar.gz
|
|
target/release/polkadot-execute-worker
|
|
target/release/polkadot-prepare-worker
|
|
retention-days: 2
|
|
if-no-files-found: error
|