-
Notifications
You must be signed in to change notification settings - Fork 258
44 lines (36 loc) · 1.2 KB
/
build-substrate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build Substrate Binary
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
runs-on: ubuntu-latest-16-cores
steps:
- name: checkout polkadot-sdk
uses: actions/checkout@v4
with:
repository: paritytech/polkadot-sdk
- name: Install dependencies
run: sudo apt-get install -y protobuf-compiler
- name: Install WASM toolchain
run: rustup target add wasm32-unknown-unknown
- name: Install WASM toolchain
run: rustup component add rust-src
- name: Rust Cache
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
- name: build substrate binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release --manifest-path substrate/bin/node/cli/Cargo.toml
- name: upload substrate binary
uses: actions/upload-artifact@v3
with:
name: nightly-substrate-binary
path: target/release/substrate-node
retention-days: 2
if-no-files-found: error