-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.24 KB
/
run-workflows.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
45
46
47
48
49
50
51
52
53
54
55
56
name: Run Workflows
on:
push:
branches:
- main
- 'release/v[0-9]+\.[0-9]+\.[0-9]+'
- "feature/**"
pull_request:
types:
- opened
- synchronize
branches:
- 'release/v[0-9]+\.[0-9]+\.[0-9]+'
- "feature/**"
# Manual trigger
workflow_dispatch:
jobs:
define_build_strategy:
name: Define build strategy
runs-on: ubuntu-22.04
outputs:
matrix: ${{ steps.strategy.outputs.matrix }}
steps:
- name: Define build strategy
id: strategy
env:
CONFIG: >-
[
{
"platform": [
"ubuntu-22.04",
"windows-2022"
],
"build_type": [
"Release"
]
}
]
run: echo "matrix=$(jq -c . <<< \"$CONFIG\")" >> $GITHUB_OUTPUT
- name: Display build config
run: jq . <<< ${{ steps.strategy.outputs.matrix }}
build_dependencies:
needs: define_build_strategy
strategy:
matrix: ${{ fromJson(needs.define_build_strategy.outputs.matrix) }}
uses: ./.github/workflows/build-dependencies.yml
with:
platform: ${{ matrix.platform }}
build_type: ${{ matrix.build_type }}