-
Notifications
You must be signed in to change notification settings - Fork 774
75 lines (63 loc) · 2.15 KB
/
Copy pathgenerate_files.yml
File metadata and controls
75 lines (63 loc) · 2.15 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
name: generate-files
on:
workflow_call:
jobs:
update-generated-files:
runs-on: ubuntu-22.04
steps:
- uses: actions/cache@v5
id: cache
with:
path: |
${{ runner.workspace }}/b/ninja/simc
ActionPriorityLists
profiles
.git
key: ubuntu-clang++-15-for_run-${{ github.sha }}-cpp-17
- uses: actions/checkout@v6
- name: Setup
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
- name: Generate APL Modules
if: steps.cache.outputs.cache-hit == 'true'
env:
SIMC_CLI_PATH: ${{ runner.workspace }}/b/ninja/simc
run: ${{ github.workspace }}/generate_apl_modules_ci.sh
- name: Download APL Dumps
uses: actions/download-artifact@v8
with:
path: ActionPriorityLists
pattern: apl-${{ github.sha }}-*
merge-multiple: true
- name: Download Profiles
uses: actions/download-artifact@v8
with:
path: profiles
pattern: profiles-${{ github.sha }}-*
merge-multiple: true
- name: Dump Spell Data
if: steps.cache.outputs.cache-hit == 'true'
env:
SIMC_CLI_PATH: ${{ runner.workspace }}/b/ninja/simc
run: ${{ github.workspace}}/SpellDataDump/spelldatadump_ci.sh
- name: Check for Non-Trivial Changes
run: |
if [ "$(git ls-files -m)" = "SpellDataDump/build_info.txt" ]; then
git checkout -- SpellDataDump/build_info.txt
fi
- name: Commit Updated Files
continue-on-error: true
uses: EndBug/add-and-commit@v10
with:
message: "Update Generated Files ${{ env.SHORT_SHA }}"
default_author: github_actions
fetch: --no-tags --force --prune --no-recurse-submodules --depth=1 origin ${{ github.ref_name }}
add: |
- "engine/class_modules/apl"
- "*.simc"
- "*.txt"
- name: Cleanup Artifacts
uses: geekyeggo/delete-artifact@v6
with:
name: |
apl-${{ github.sha }}-*
profiles-${{ github.sha }}-*