Skip to content

Commit 0889275

Browse files
committed
Parse toc files to implement support for flavor filters (such as AllowLoadGameMode etc) instead of parsing all lua and xml files
1 parent f0bd054 commit 0889275

File tree

13 files changed

+362
-28
lines changed

13 files changed

+362
-28
lines changed

.github/workflows/beta.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: beta
13+
FLAVOR: mainline

.github/workflows/classic.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: classic
13+
FLAVOR: cata

.github/workflows/classic_era.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: classic_era
13+
FLAVOR: vanilla

.github/workflows/classic_era_ptr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: classic_era_ptr
13+
FLAVOR: vanilla

.github/workflows/classic_ptr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: classic_ptr
13+
FLAVOR: cata

.github/workflows/force_update_all.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,53 @@ jobs:
99
with:
1010
BRANCH: live
1111
FORCE_UPDATE: true
12+
FLAVOR: mainline
1213

1314
ptr:
1415
uses: ./.github/workflows/template.yml
1516
with:
1617
BRANCH: ptr
1718
FORCE_UPDATE: true
19+
FLAVOR: mainline
1820

1921
ptr2:
2022
uses: ./.github/workflows/template.yml
2123
with:
2224
BRANCH: ptr2
2325
FORCE_UPDATE: true
26+
FLAVOR: mainline
2427

2528
beta:
2629
uses: ./.github/workflows/template.yml
2730
with:
2831
BRANCH: beta
2932
FORCE_UPDATE: true
33+
FLAVOR: mainline
3034

3135
classic:
3236
uses: ./.github/workflows/template.yml
3337
with:
3438
BRANCH: classic
3539
FORCE_UPDATE: true
40+
FLAVOR: cata
3641

3742
classic_ptr:
3843
uses: ./.github/workflows/template.yml
3944
with:
4045
BRANCH: classic_ptr
4146
FORCE_UPDATE: true
47+
FLAVOR: cata
4248

4349
classic_era:
4450
uses: ./.github/workflows/template.yml
4551
with:
4652
BRANCH: classic_era
4753
FORCE_UPDATE: true
54+
FLAVOR: vanilla
4855

4956
classic_era_ptr:
5057
uses: ./.github/workflows/template.yml
5158
with:
5259
BRANCH: classic_era_ptr
5360
FORCE_UPDATE: true
61+
FLAVOR: vanilla

.github/workflows/live.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: live
13+
FLAVOR: mainline

.github/workflows/ptr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: ptr
13+
FLAVOR: mainline

.github/workflows/ptr2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
uses: ./.github/workflows/template.yml
1111
with:
1212
BRANCH: ptr2
13+
FLAVOR: mainline

.github/workflows/template.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
11
name: template
22

33
on:
4-
workflow_call:
4+
workflow_dispatch:
55
inputs:
66
BRANCH:
77
description: 'Branch to run the workflow on'
88
required: true
99
default: 'live'
1010
type: string
11+
FLAVOR:
12+
description: 'Flavor to filter the input for'
13+
required: true
14+
default: 'mainline'
15+
type: choice
16+
options:
17+
- mainline
18+
- mists
19+
- cata
20+
- wrath
21+
- tbc
22+
- vanilla
1123
FORCE_UPDATE:
1224
description: 'Force update the branch'
1325
required: false
1426
default: false
1527
type: boolean
16-
workflow_dispatch:
28+
workflow_call:
1729
inputs:
1830
BRANCH:
1931
description: 'Branch to run the workflow on'
2032
required: true
2133
default: 'live'
2234
type: string
35+
FLAVOR:
36+
description: 'Flavor to filter the input for'
37+
required: true
38+
default: 'mainline'
39+
type: string
2340
FORCE_UPDATE:
2441
description: 'Force update the branch'
2542
required: false
@@ -112,11 +129,12 @@ jobs:
112129
run: |
113130
set -ex
114131
branch=${{ inputs.BRANCH }}
132+
flavor=${{ inputs.FLAVOR }}
115133
cd ./.wow-ui-source
116134
remote_commit_hash=$(git rev-parse HEAD)
117135
message="Synced to commit ${remote_commit_hash}"
118136
cd ..
119-
bin/annotate --inputDir=./.wow-ui-source/Interface --outputDir=./.annotations_temp/Annotations --linkPrefix="https://github.com/Gethe/wow-ui-source/blob/${branch}/Interface"
137+
bin/annotate ${flavor} --inputDir=./.wow-ui-source/Interface --outputDir=./.annotations_temp/Annotations --linkPrefix="https://github.com/Gethe/wow-ui-source/blob/${branch}/Interface"
120138
cd ./.annotations_temp
121139
git config user.name "GitHub Actions"
122140
git config user.email [email protected]

0 commit comments

Comments
 (0)