-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (32 loc) · 1.3 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
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@3afa751aae4071b2d1ca1c5fa42528a351c995f4
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