Skip to content

Commit 910fafc

Browse files
A0-4233: Nightly workflow for feature-gated builds (#1672)
# Description This PR adds a simple `cargo check` command for `try-runtime` and `runtime-benchmarks` builds. Although it takes < 10 minutes, it is enough to build it in nightly or on demand only. ## Type of change Please delete options that are not relevant. - New feature (non-breaking change which adds functionality) # Checklist: https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/8599951172/job/23563916878
1 parent c6b1a6e commit 910fafc

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
# This workflow checks node build with various features
3+
name: Feature-gated builds
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '00 20 * * *'
8+
9+
concurrency:
10+
group: ${{ github.ref }}-${{ github.workflow }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
feature-gated-builds:
15+
name: Feature-gated builds
16+
runs-on: [self-hosted, Linux, X64, large]
17+
env:
18+
RUST_BACKTRACE: full
19+
RUSTC_WRAPPER: sccache
20+
steps:
21+
- name: Checkout aleph-node source code
22+
uses: actions/checkout@v4
23+
24+
- name: Install Rust toolchain
25+
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v6
26+
with:
27+
targets: wasm32-unknown-unknown
28+
29+
- name: aleph-runtime with try-runtime
30+
run: cargo check --profile production -p aleph-runtime --features try-runtime --locked
31+
32+
- name: aleph-node with runtime-benchmarks
33+
run: cargo check --profile production -p aleph-node --features runtime-benchmarks --locked
34+
35+
slack-notification:
36+
name: Slack notification
37+
runs-on: ubuntu-20.04
38+
needs: [feature-gated-builds]
39+
if: >
40+
!cancelled() &&
41+
github.event_name != 'workflow_dispatch'
42+
steps:
43+
- name: Send Slack message
44+
uses: Cardinal-Cryptography/github-actions/slack-notification@v6
45+
with:
46+
notify-on: "failure"
47+
env:
48+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}

0 commit comments

Comments
 (0)