-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.07 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
35
36
37
38
39
40
41
42
43
44
---
name: Build
on: # yamllint disable-line rule:truthy
- push
jobs:
generate-matrix:
name: Generate Build Matrix
runs-on: ubuntu-24.04
outputs:
features: ${{ steps.generator.outputs.features }}
steps:
- uses: actions/checkout@v4
- uses: TheHackerApp/feature-powerset-action@main
id: generator
library:
name: Library (${{ matrix.feature }})
runs-on: ubuntu-24.04
needs: [generate-matrix]
strategy:
fail-fast: false
matrix:
feature: ${{ fromJSON(needs.generate-matrix.outputs.features) }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release -F ${{ matrix.feature }}
test:
name: Test (${{ matrix.feature }})
runs-on: ubuntu-24.04
needs: [generate-matrix]
strategy:
fail-fast: false
matrix:
feature: ${{ fromJSON(needs.generate-matrix.outputs.features) }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test -F ${{ matrix.feature }}