-
-
Notifications
You must be signed in to change notification settings - Fork 71
26 lines (24 loc) · 789 Bytes
/
_build-matrix.yaml
File metadata and controls
26 lines (24 loc) · 789 Bytes
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
name: Build matrix
on:
workflow_call:
outputs:
build_matrix:
description: JSON array of build configurations from matrix.json
value: ${{ jobs.build-matrix.outputs.build_matrix }}
jobs:
build-matrix:
name: Build matrix
runs-on: ubuntu-latest
outputs:
build_matrix: ${{ steps.set-matrix.outputs.build_matrix }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
.github/workflows/matrix.json
sparse-checkout-cone-mode: false
- id: set-matrix
shell: bash
run: |
echo "build_matrix=$( cat .github/workflows/matrix.json | jq --monochrome-output --compact-output )" >> $GITHUB_OUTPUT