https://github.com/hack-ink/cargo-featalign-action
Use cargo-featalign to check your crate's features.
https://github.com/hack-ink/cargo-featalign-action
Last synced: about 1 month ago
JSON representation
Use cargo-featalign to check your crate's features.
- Host: GitHub
- URL: https://github.com/hack-ink/cargo-featalign-action
- Owner: hack-ink
- License: gpl-3.0
- Archived: true
- Created: 2023-09-14T09:24:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-22T17:32:15.000Z (over 2 years ago)
- Last Synced: 2026-02-20T03:39:06.900Z (2 months ago)
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [cargo-featalign action](https://github.com/hack-ink/cargo-featalign-action)
### Use [`cargo-featalign`](https://github.com/hack-ink/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](https://github.com/paritytech/polkadot-sdk) as an example.**
```sh
gh repo clone paritytech/polkadot-sdk
```
**Check single crate.**
```yml
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/cargo-featalign-action@v0.1.0
with:
crate: polkadot/runtime/polkadot
features: std,runtime-benchmarks,try-runtime
default-std: true
```
**Check multiple crates at once.**
```yml
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/cargo-featalign-action@v0.1.0
with:
crate: polkadot
features: std,runtime-benchmarks,try-runtime
default-std: true
```