/subalfred-check-features-action

Use `subalfred check features` to check your runtime code.

GNU General Public License v3.0GPL-3.0

Use subalfred check features to check your runtime code.

DEPRECATED

Please move to the new repository at https://github.com/hack-ink/cargo-featalign.

Introduction

This will check if your runtime features are enabled correctly.

Including:

  • runtime-benchmarks
  • std
  • try-runtime

Take a look at the real example here.

Usage

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 }}