-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.22 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
name: Run Workflows
on:
push:
branches:
- master
- '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:
MATRIX: >-
{
"include": [
{
"platform": "ubuntu-22.04",
"build_type": "Release"
}
]
}
run: echo "matrix=$(jq -r -c . <<< "$MATRIX")" >> $GITHUB_OUTPUT
- name: Display build config
run: jq . <<< '${{ steps.strategy.outputs.matrix }}'
build_dependencies:
name: 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 }}