Merge pull request #24 from Holzhaus/dependabot/github_actions/peacei… #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |