Skip to content

Merge pull request #24 from Holzhaus/dependabot/github_actions/peacei… #148

Merge pull request #24 from Holzhaus/dependabot/github_actions/peacei…

Merge pull request #24 from Holzhaus/dependabot/github_actions/peacei… #148

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