Nightly feature-gated builds #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This workflow checks node build with various features | |
name: Nightly feature-gated builds | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 20 * * *' | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
feature-gated-builds: | |
name: Feature-gated builds | |
runs-on: [self-hosted, Linux, X64, large] | |
env: | |
RUST_BACKTRACE: full | |
RUSTC_WRAPPER: sccache | |
steps: | |
- name: Checkout aleph-node source code | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v7 | |
with: | |
targets: wasm32-unknown-unknown | |
- name: aleph-runtime with runtime-benchmarks | |
# yamllint disable-line rule:line-length | |
run: cargo check --profile production -p aleph-runtime --features runtime-benchmarks --locked | |
- name: aleph-node with runtime-benchmarks | |
run: cargo check --profile production -p aleph-node --features runtime-benchmarks --locked | |
- name: aleph-node with aleph-runtime-native | |
run: cargo check --profile dev -p aleph-node --features aleph-runtime-native --locked | |
- name: chain-bootstrapper with try-runtime | |
run: cargo check --profile production -p chain-bootstrapper --features try-runtime --locked | |
slack-notification: | |
name: Slack notification | |
runs-on: ubuntu-20.04 | |
needs: [feature-gated-builds] | |
if: > | |
!cancelled() && | |
github.event_name != 'workflow_dispatch' | |
steps: | |
- name: Send Slack message | |
uses: Cardinal-Cryptography/github-actions/slack-notification@v7 | |
with: | |
notify-on: "failure" | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }} |