Skip to content

ci: Build all feature combinations #121

ci: Build all feature combinations

ci: Build all feature combinations #121

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
cargo-toml-features:
name: Generate Feature Combinations
runs-on: ubuntu-latest
outputs:
feature-combinations: ${{ steps.cargo-toml-features.outputs.feature-combinations }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Determine Cargo Features
id: cargo-toml-features
uses: Holzhaus/cargo-toml-features-action@daed80e52cba9fefe0f605b58e74d95b4056942e
build:
needs: cargo-toml-features
runs-on: ubuntu-latest
strategy:
matrix:
features: ${{ fromJson(needs.cargo-toml-features.outputs.feature-combinations) }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Print Rust version
run: rustc -vV
- name: Run tests
run: cargo test --no-default-features --features "${{ join(matrix.features, ',') }}" --verbose
- name: Run bench
run: cargo bench --no-default-features --features "${{ join(matrix.features, ',') }}" --verbose
- name: Run doc
run: cargo doc --no-default-features --features "${{ join(matrix.features, ',') }}" --verbose