Skip to content

Merge pull request #22 from Holzhaus/dependabot/github_actions/action… #149

Merge pull request #22 from Holzhaus/dependabot/github_actions/action…

Merge pull request #22 from Holzhaus/dependabot/github_actions/action… #149

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