Please move to the new repository at https://github.com/hack-ink/cargo-featalign.
This will check if your runtime features are enabled correctly.
Including:
- runtime-benchmarks
- std
- try-runtime
Take a look at the real example here.
Take Polkadot code/repository as an example.
Check single runtime.
name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
features-checks:
name: Task check features
runs-on: ubuntu-latest
steps:
- name: Check
uses: actions/subalfred-check-features-action@v0.1.5
with:
path: runtime/polkadot
Check multiple runtimes at once.
name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
features-checks:
name: Task check features
strategy:
matrix:
runtime: [runtime/polkadot, runtime/kusama, runtime/rococo]
runs-on: ubuntu-latest
steps:
- name: Check ${{ matrix.runtime }}
uses: hack-ink/subalfred-check-features-action@v0.1.5
with:
path: ${{ matrix.runtime }}