forked from Mudlet/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 0
254 lines (224 loc) · 11.6 KB
/
update-3rdparty.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
name: Update 3rdparty sources
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * fri'
jobs:
update-iremapper-source:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Mudlet' }}
steps:
- uses: actions/checkout@v4
with:
ref: development
- name: Download latest IRE mapper
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/IRE-Mudlet-Mapping/ire-mapping-script/gh-pages/downloads/mudlet-mapper.xml
file-name: mudlet-mapper.xml
location: src/
# strictly speaking this step isn't necessary since the PR action can filter as well, but it's easier
# to see in github UI's if PR creation was skipped when we have an explicit pre-check
- name: check if we have any updates
id: getdiff
run: |
lines_changed=$(git diff --patch --unified=0 src/mudlet-mapper.xml | wc --lines)
echo "$lines_changed lines changed."
echo ::set-output name=lines_changed::$lines_changed
- name: send in a pull request
uses: peter-evans/create-pull-request@v7
if: steps.getdiff.outputs.lines_changed > 0
with:
token: ${{ secrets.GH_PAT_UPDATE_3RDPARTY }}
add-paths: src/
branch: update-ire-mapping-script
commit-message: (autocommit) Updated IRE mapping script to latest upstream
title: "Infrastructure: Update bundled IRE mapper script to latest upstream"
body: |
#### Brief overview of PR changes/additions
:crown: An automated PR to update the IRE mapper script to the latest version.
#### Motivation for adding to Mudlet
So people don't get attacked with a "your mapping script is out of date!" notification as soon as they create a profile for a new IRE game.
#### Other info (issues closed, discussion etc)
_update triggered by ${{ github.ref }} ${{ github.sha }}_
author: mudlet-machine-account <[email protected]>
update-dblsqd-fork:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Mudlet' }}
steps:
- uses: actions/checkout@v4
with:
ref: development
submodules: true
fetch-depth: 0
- name: update submodule to latest
run: git submodule update --remote 3rdparty/dblsqd/
# strictly speaking this step isn't necessary since the PR action can filter as well, but it's easier
# to see in github UI's if PR creation was skipped when we have an explicit pre-check
- name: check if we have any updates
id: getdiff
run: |
lines_changed=$(git diff --patch --unified=0 3rdparty/dblsqd/ | wc --lines)
echo "$lines_changed lines changed."
echo ::set-output name=lines_changed::$lines_changed
- name: send in a pull request
uses: peter-evans/create-pull-request@v7
if: steps.getdiff.outputs.lines_changed > 0
with:
token: ${{ secrets.GH_PAT_UPDATE_3RDPARTY }}
add-paths: 3rdparty/dblsqd
branch: update-dblsqd
commit-message: (autocommit) Updated dblsqd submodule to latest in our fork
title: "Infrastructure: Update dblsqd to latest in our fork"
body: |
#### Brief overview of PR changes/additions
:crown: An automated PR to update dblsqd to its latest version in our fork.
#### Motivation for adding to Mudlet
Get new features, bugfixes, improvements! Stay modern.
#### Other info (issues closed, discussion etc)
_update triggered by ${{ github.ref }} ${{ github.sha }}_
author: mudlet-machine-account <[email protected]>
update-lcf-source-51:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Mudlet' }}
steps:
- uses: actions/checkout@v4
with:
ref: development
submodules: true
fetch-depth: 0
- name: update submodule to latest in branch
run: |
cd 3rdparty/lcf/
git checkout 5.1-syntax_5.1
git pull
# strictly speaking this step isn't necessary since the PR action can filter as well, but it's easier
# to see in github UI's if PR creation was skipped when we have an explicit pre-check
- name: check if we have any updates
id: getdiff
run: |
lines_changed=$(git diff --patch --unified=0 3rdparty/lcf/ | wc --lines)
echo "$lines_changed lines changed."
echo ::set-output name=lines_changed::$lines_changed
- name: send in a pull request
uses: peter-evans/create-pull-request@v7
if: steps.getdiff.outputs.lines_changed > 0
with:
token: ${{ secrets.GH_PAT_UPDATE_3RDPARTY }}
add-paths: 3rdparty/lcf
branch: update-lcf
commit-message: (autocommit) Updated lcf submodule to latest upstream branch
title: "Infrastructure: Update Lua code formatter to latest upstream branch"
body: |
#### Brief overview of PR changes/additions
:crown: An automated PR to update the built-in Lua code formatter to its latest version in upstream `5.1-syntax_5.1` (parses code only as Lua version 5.1) branch.
#### Motivation for adding to Mudlet
Get new features, bugfixes, improvements! Stay modern.
#### Other info (issues closed, discussion etc)
_update triggered by ${{ github.ref }} ${{ github.sha }}_
author: mudlet-machine-account <[email protected]>
update-widecharwidth-source:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Mudlet' }}
steps:
- uses: actions/checkout@v4
with:
ref: development
- name: download latest from source repo
run: |
curl -o src/widechar_width.h https://raw.githubusercontent.com/ridiculousfish/widecharwidth/master/widechar_width.h
# strictly speaking this step isn't necessary since the PR action can filter as well, but it's easier
# to see in github UI's if PR creation was skipped when we have an explicit pre-check
- name: check if we have any updates
id: getdiff
run: |
lines_changed=$(git diff --patch --unified=0 src/widechar_width.h | wc --lines)
echo "$lines_changed lines changed."
echo ::set-output name=lines_changed::$lines_changed
- name: send in a pull request
uses: peter-evans/create-pull-request@v7
if: steps.getdiff.outputs.lines_changed > 0
with:
token: ${{ secrets.GH_PAT_UPDATE_3RDPARTY }}
add-paths: src/widechar_width.h
branch: update-widechar-width
commit-message: (autocommit) Update widechar_width.h to latest upstream
title: "Infrastructure: Update widechar_width.h to latest upstream"
body: |
#### Brief overview of PR changes/additions
:crown: An automated PR to update the built-in `src/widechar_width.h` to its latest version in upstream. We don't include it as a submodule as it's just one file.
#### Motivation for adding to Mudlet
Better emoji and symbol support! This file helps us tell if a particular character is 0, 1, or 2 widths wide so we can show it correctly in the display.
#### Other info (issues closed, discussion etc)
_update triggered by ${{ github.ref }} ${{ github.sha }}_
author: mudlet-machine-account <[email protected]>
update-singleshot-connect-source:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Mudlet' }}
steps:
- uses: actions/checkout@v4
with:
ref: development
- name: download latest from source repo
run: |
curl -o 3rdparty/kdtoolbox/singleshot_connect/singleshot_connect.h https://raw.githubusercontent.com/KDAB/KDToolBox/master/qt/singleshot_connect/singleshot_connect.h
# strictly speaking this step isn't necessary since the PR action can filter as well, but it's easier
# to see in github UI's if PR creation was skipped when we have an explicit pre-check
- name: check if we have any updates
id: getdiff
run: |
lines_changed=$(git diff --patch --unified=0 3rdparty/kdtoolbox/singleshot_connect/singleshot_connect.h | wc --lines)
echo "$lines_changed lines changed."
echo ::set-output name=lines_changed::$lines_changed
- name: send in a pull request
uses: peter-evans/create-pull-request@v7
if: steps.getdiff.outputs.lines_changed > 0
with:
token: ${{ secrets.GH_PAT_UPDATE_3RDPARTY }}
add-paths: 3rdparty/kdtoolbox
branch: update-singleshot-connect
commit-message: (autocommit) Update singleshot_connect.h to latest upstream
title: "Infrastructure: Update singleshot_connect.h to latest upstream"
body: |
#### Brief overview of PR changes/additions
:crown: An automated PR to update the built-in `3rdparty/kdtoolbox/singleshot_connect/singleshot_connect.h` to its latest version in upstream. We don't include it as a submodule as we're using tools from the KDToolBox as we need them.
#### Motivation for adding to Mudlet
Latest version of the Qt utility feature that allows singleshot connections.
#### Other info (issues closed, discussion etc)
_update triggered by ${{ github.ref }} ${{ github.sha }}_
author: mudlet-machine-account <[email protected]>
update-cmake-scripts-source:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Mudlet' }}
steps:
- uses: actions/checkout@v4
with:
ref: development
- name: download latest from source repo
run: |
curl -o 3rdparty/cmake-scripts/sanitizers.cmake https://raw.githubusercontent.com/StableCoder/cmake-scripts/main/sanitizers.cmake
# strictly speaking this step isn't necessary since the PR action can filter as well, but it's easier
# to see in github UI's if PR creation was skipped when we have an explicit pre-check
- name: check if we have any updates
id: getdiff
run: |
lines_changed=$(git diff --patch --unified=0 3rdparty/cmake-scripts/sanitizers.cmake | wc --lines)
echo "$lines_changed lines changed."
echo ::set-output name=lines_changed::$lines_changed
- name: send in a pull request
uses: peter-evans/create-pull-request@v7
if: steps.getdiff.outputs.lines_changed > 0
with:
token: ${{ secrets.GH_PAT_UPDATE_3RDPARTY }}
add-paths: 3rdparty/cmake-scripts
branch: update-cmake-scripts
commit-message: (autocommit) Update sanitizers.cmake to latest upstream
title: "Infrastructure: Update sanitizers.cmake to latest upstream"
body: |
#### Brief overview of PR changes/additions
:crown: An automated PR to update the built-in `3rdparty/cmake-scripts/sanitizers.cmake` to its latest version in upstream. We don't include it as a submodule as we need just this one file from the entire repo.
#### Motivation for adding to Mudlet
Latest version of the CMake utility feature that allows use to use various CMake sanitizers via the `USE_SANITIZER` CMake variable.
#### Other info (issues closed, discussion etc)
_update triggered by ${{ github.ref }} ${{ github.sha }}_
author: mudlet-machine-account <[email protected]>