-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (37 loc) · 1.16 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
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.74.0-2023-11-01-v20231204
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
- name: upload polkadot binary
uses: actions/upload-artifact@v3
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