Skip to content

hack-ink/cargo-featalign-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use cargo-featalign to check your crate's features.

Introduction

This will print the dry run output. If there is no output, it means your crate is good to go.

Usage

Take polkadot-sdk as an example.

gh repo clone paritytech/polkadot-sdk

Check single crate.

name: Checks
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
jobs:
  features-check:
    name: Task check features
    runs-on: ubuntu-latest
    steps:
      - name: Fetch latest code
        uses: actions/checkout@v4
      - name: Check
        uses: hack-ink/[email protected]
        with:
          crate: polkadot/runtime/polkadot
          features: std,runtime-benchmarks,try-runtime
          default-std: true

Check multiple crates at once.

name: Checks
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
jobs:
  runtime-checks:
    name: Task check runtimes
    strategy:
      matrix:
        target: [polkadot/runtime/polkadot, polkadot/runtime/kusama]
    runs-on: ubuntu-latest
    steps:
      - name: Fetch latest code
        uses: actions/checkout@v4
      - name: Check ${{ matrix.target.chain }}
        uses: hack-ink/[email protected]
        with:
          crate: polkadot
          features: std,runtime-benchmarks,try-runtime
          default-std: true

About

Use cargo-featalign to check your crate's features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published