-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (40 loc) · 1.33 KB
/
build-staking-miner-playground-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 staking miner playground binary for nightly tests
on:
# Run when changes to staking miner playground is made
push:
branches:
- main
paths:
- "staking-miner-playground/**"
# Allow it to be manually ran to rebuild binary when needed:
workflow_dispatch: {}
# Run at 22pm every week on Mondays for nightly builds.
schedule:
- cron: "0 22 * * 1"
jobs:
tests:
name: Build staking-miner-playground
runs-on: ubuntu-latest
container: paritytech/ci-unified:bullseye-1.81.0-2024-09-11
steps:
- name: checkout
uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: |
staking-miner-playground
cache-on-failure: true
- name: build staking-miner-playground binary
run: |
cd staking-miner-playground
cargo build --release --features test-trimming
./target/release/staking-miner-playground --version
strip -s ./target/release/staking-miner-playground
- name: upload staking-miner-playground binary
uses: actions/upload-artifact@v4
with:
name: staking-miner-playground-binary
path: ./staking-miner-playground/target/release/staking-miner-playground
retention-days: 31
if-no-files-found: error