-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (40 loc) · 1.31 KB
/
build-polkadot-for-nightly.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
45
name: Build polkadot binary for nightly tests
on:
# Allow it to be manually ran to rebuild binary when needed:
workflow_dispatch: {}
# Run at 22pm every day for nightly builds.
schedule:
- cron: "0 22 * * *"
jobs:
tests:
name: Build polkadot binary
runs-on: ubuntu-latest
container: paritytech/ci-unified:bullseye-1.81.0-2024-09-11
steps:
- name: checkout polkadot-sdk
uses: actions/checkout@v4
with:
repository: paritytech/polkadot-sdk
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: |
polkadot
cache-on-failure: true
- name: build polkadot binary
run: |
cargo build -p polkadot --release --features fast-runtime
./target/release/polkadot --version
strip -s ./target/release/polkadot
strip -s ./target/release/polkadot-prepare-worker
strip -s ./target/release/polkadot-execute-worker
- name: upload polkadot binary
uses: actions/upload-artifact@v4
with:
name: nightly-polkadot-binary
path: |
./target/release/polkadot
./target/release/polkadot-execute-worker
./target/release/polkadot-prepare-worker
retention-days: 2
if-no-files-found: error