-
-
Notifications
You must be signed in to change notification settings - Fork 0
214 lines (197 loc) · 7.6 KB
/
update-dependencies.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
name: Update Dependencies
on:
schedule:
- cron: '0 16 * * 0'
workflow_dispatch:
jobs:
update-dependencies:
name: Update Dependencies
if: github.repository == 'GamesTrap/TRAP'
runs-on: [self-hosted, Linux, X64, ubuntu, "23.10", cpu]
steps:
- name: Cleanup workspace
if: ${{ always() }}
uses: gamestrap/[email protected]
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'true'
ref: dev
- uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: TRAP CI/CD
- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Update Box2D
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/Box2D"
update-method: "latest-commit"
branch: "main"
pr-title: "Box2D"
pr-branch-name: "box2d-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update EnTT
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/EnTT"
update-method: "latest-tag"
tag-regex: '^v[0-9]+(\.[0-9]+)*$' #vX.X.X SemVer
pr-title: "EnTT"
pr-branch-name: "entt-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update ImGuizmo
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/ImGuizmo"
update-method: "latest-commit"
branch: "master"
pr-title: "ImGuizmo"
pr-branch-name: "imguizmo-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update ModernDialogs
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/ModernDialogs"
update-method: "latest-tag"
tag-regex: '^v[0-9]+(\.[0-9]+)*$' #vX.X.X SemVer
pr-title: "ModernDialogs"
pr-branch-name: "moderndialogs-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update Tracy
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/Tracy"
update-method: "latest-tag"
tag-regex: '^v[0-9]+(\.[0-9]+)*$' #vX.X.X SemVer
pr-title: "Tracy"
pr-branch-name: "tracy-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update VulkanMemoryAllocator
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/VulkanMemoryAllocator"
update-method: "latest-commit"
branch: "master"
pr-title: "VulkanMemoryAllocator"
pr-branch-name: "vma-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update YAMLCpp
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/YAMLCpp"
update-method: "latest-commit"
branch: "master"
pr-title: "YAMLCpp"
pr-branch-name: "yamlcpp-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update {fmt}
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/fmt"
update-method: "latest-tag"
tag-regex: '^[0-9]+(\.[0-9]+)*$' #X.X.X SemVer
pr-title: "{fmt}"
pr-branch-name: "fmt-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update Catch2
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/Catch2"
update-method: "latest-tag"
tag-regex: '^v[0-9]+(\.[0-9]+)*$' #vX.X.X SemVer
pr-title: "Catch2"
pr-branch-name: "catch2-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update Vulkan-Headers
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/Vulkan-Headers"
update-method: "latest-tag"
tag-regex: '^vulkan-sdk-[0-9]+(\.[0-9]+)*$' #vulkan-sdk-X.X.X SemVer
pr-title: "Vulkan-Headers"
pr-branch-name: "vulkan-headers-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update GCEM
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/GCEM"
update-method: "latest-commit"
branch: "master"
pr-title: "GCEM"
pr-branch-name: "gcem-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update Premake-VSCodeGen
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: ".modules/vscode"
update-method: "latest-commit"
branch: "main"
pr-title: "Premake-VSCodeGen"
pr-branch-name: "premake-vscodegen-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update GLSLang
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/GLSLang"
update-method: "latest-tag"
tag-regex: '^vulkan-sdk-[0-9]+(\.[0-9]+)*$' #vulkan-sdk-X.X.X SemVer
pr-title: "GLSLang"
pr-branch-name: "glslang-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update SPIRV-Cross
if: ${{ always() }}
uses: ./.github/composite/update-git-dependency
with:
dependency-path: "Dependencies/SPIRV-Cross"
update-method: "latest-tag"
tag-regex: '^vulkan-sdk-[0-9]+(\.[0-9]+)*$' #vulkan-sdk-X.X.X SemVer
pr-title: "SPIRV-Cross"
pr-branch-name: "spirvcross-update"
pr-token: ${{steps.generate-token.outputs.token}}
- name: Update ImGui
if: ${{ always() }}
id: imgui
run: |
cd Dependencies/ImGui/
git fetch origin docking
git pull origin docking
newest_commit=$(git log --grep="Merge branch 'master' into docking" --pretty=format:'%H' --max-count=1)
git reset --hard $newest_commit
echo "IMGUI_VERSION=${newest_commit}" >> "$GITHUB_OUTPUT"
cd ../..
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
base: dev
add-paths: Dependencies/ImGui
branch: imgui-update/${{steps.imgui.outputs.IMGUI_VERSION}}
delete-branch: true
commit-message: "Update ImGui to ${{steps.imgui.outputs.IMGUI_VERSION}}"
title: "Update ImGui to ${{steps.imgui.outputs.IMGUI_VERSION}}"
labels: "CI/CD, External, Update"
assignees: "GamesTrap"
milestone: 5
token: ${{steps.generate-token.outputs.token}}
author: "TRAP CI/CD <[email protected]>"
committer: "TRAP CI/CD <[email protected]>"