-
Notifications
You must be signed in to change notification settings - Fork 9
125 lines (111 loc) · 3.39 KB
/
Copy pathpull_request.yml
File metadata and controls
125 lines (111 loc) · 3.39 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Pull Request Check
on:
pull_request:
branches:
- dev/**
paths:
- .github/modules.json
- .github/workflows/build_and_test.yml
- .github/workflows/pull_request.yml
- .github/workflows/roseau_check.yml
- .github/workflows/generate-matrix.js
- gradle/**
- module.*/src/**
- module.*/build.gradle
- module.*/gradle.properties
- build.gradle
- module.gradle
- gradle.properties
- settings.gradle
permissions:
contents: read
actions: read
packages: read
pull-requests: write
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
level_0: ${{ steps.matrix.outputs.level_0 }}
level_1: ${{ steps.matrix.outputs.level_1 }}
level_2: ${{ steps.matrix.outputs.level_2 }}
steps:
- uses: actions/checkout@v6
- id: matrix
run: node .github/workflows/generate-matrix.js
# ── Build (topological levels) ──────────────────────────────────
build-l0:
needs: [prepare]
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.level_0) }}
uses: ./.github/workflows/build_and_test.yml
with:
module: ${{ matrix.module }}
module_id: ${{ matrix.module_id }}
mod_id: ${{ matrix.mod_id }}
ci_build: true
pr_build: true
build-l1:
needs: [prepare, build-l0]
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.level_1) }}
uses: ./.github/workflows/build_and_test.yml
with:
module: ${{ matrix.module }}
module_id: ${{ matrix.module_id }}
mod_id: ${{ matrix.mod_id }}
ci_build: true
pr_build: true
build-l2:
needs: [prepare, build-l1]
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.level_2) }}
uses: ./.github/workflows/build_and_test.yml
with:
module: ${{ matrix.module }}
module_id: ${{ matrix.module_id }}
mod_id: ${{ matrix.mod_id }}
ci_build: true
pr_build: true
# ── Roseau API checks ───────────────────────────────────────────
roseau-l0:
needs: [prepare, build-l0]
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.level_0) }}
uses: ./.github/workflows/roseau_check.yml
with:
module: ${{ matrix.module }}
module_id: ${{ matrix.module_id }}
roseau-l1:
needs: [prepare, build-l1]
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.level_1) }}
uses: ./.github/workflows/roseau_check.yml
with:
module: ${{ matrix.module }}
module_id: ${{ matrix.module_id }}
roseau-l2:
needs: [prepare, build-l2]
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.level_2) }}
uses: ./.github/workflows/roseau_check.yml
with:
module: ${{ matrix.module }}
module_id: ${{ matrix.module_id }}
# ── Main (aggregator) ───────────────────────────────────────────
main:
needs: [build-l2]
uses: ./.github/workflows/build_and_test.yml
with:
module: main
module_id: anvillib
mod_id: anvillib
ci_build: true
pr_build: true
gametest: true
main-roseau:
needs: [main]
uses: ./.github/workflows/roseau_check.yml
with:
module: main
module_id: anvillib