1212 type : string
1313 required : false
1414
15- env :
16- # LLVM MinGW download
17- LLVM_MINGW_VERSION : llvm-mingw-20240619-msvcrt-ubuntu-20.04-x86_64
18- LLVM_MINGW_DOWNLOAD : https://github.com/mstorsjo/llvm-mingw/releases/download/20240619/llvm-mingw-20240619-msvcrt-ubuntu-20.04-x86_64.tar.xz
19-
2015jobs :
2116 build-windows :
2217 runs-on : windows-latest
@@ -35,48 +30,35 @@ jobs:
3530
3631 - name : Add MSVC to PATH
3732 if : startswith(matrix.preset, 'msvc')
38- uses : TheMrMilchmann/setup-msvc-dev@v3
33+ uses : TheMrMilchmann/setup-msvc-dev@v4
3934 with :
4035 arch : x64
4136
4237 - name : Setup CMake and Ninja
4338 uses : lukka/get-cmake@latest
4439
45- # We only actually need this python version to run the download script, we're not going to link
46- # against it, so don't need to specify arch
4740 - name : Setup Python
48- uses : actions/setup-python@v5
41+ uses : actions/setup-python@v6
4942 with :
50- python-version : " >=3.11 "
43+ python-version : " >=3.13 "
5144
5245 - name : Checkout repository and submodules
53- uses : actions/checkout@v4
46+ uses : actions/checkout@v6
5447 with :
5548 submodules : recursive
5649
57- - name : Configure build
58- run : |
59- pip install requests
60-
61- cmake . --preset ${{ matrix.preset }} -G Ninja
62-
6350 - name : Build
64- run : cmake --build out/build/${{ matrix.preset }} --target install
65-
66- - name : Prepare Release Zip (dev ci)
67- if : inputs.new-release-tag == ''
68- run : python prepare_release.py ${{ matrix.preset }} --skip-install --no-bl3 --no-wl --unified
51+ run : python ./prepare_release.py ${{ matrix.preset }} --configure
6952
70- - name : Prepare Release Zip (draft full)
53+ - name : Rename Release Zips (draft full release )
7154 if : inputs.new-release-tag != '' && startswith(matrix.preset, 'msvc')
7255 run : |
73- python prepare_release.py ${{ matrix.preset }} --skip-install
7456 mv bl3-sdk-${{ matrix.preset }}.zip bl3-sdk.zip
7557 mv wl-sdk-${{ matrix.preset }}.zip wl-sdk.zip
7658
7759 - name : Upload Artifact
7860 if : inputs.new-release-tag == '' || startswith(matrix.preset, 'msvc')
79- uses : actions/upload-artifact@v4
61+ uses : actions/upload-artifact@v6
8062 with :
8163 name : ${{ matrix.preset }}
8264 path : " *.zip"
@@ -97,12 +79,12 @@ jobs:
9779
9880 steps :
9981 - name : Checkout repository and submodules
100- uses : actions/checkout@v4
82+ uses : actions/checkout@v6
10183 with :
10284 submodules : recursive
10385
10486 - name : Login to GitHub Container Registry
105- uses : docker/login-action@v2
87+ uses : docker/login-action@v4
10688 with :
10789 registry : ghcr.io
10890 username : ${{ github.repository_owner }}
@@ -124,16 +106,11 @@ jobs:
124106
125107 set -e
126108
127- cmake . --preset ${{ matrix.toolchain.preset }} -G Ninja
128- cmake --build out/build/${{ matrix.toolchain.preset }} --target install
129-
130- if [ ${{ inputs.new-release-tag == '' && 1 || 0 }} -ne 0 ]; then
131- python prepare_release.py ${{ matrix.toolchain.preset }} --skip-install --no-bl3 --no-wl --unified
132- fi
109+ python prepare_release.py ${{ matrix.toolchain.preset }} --configure
133110
134111 - name : Upload Artifact
135112 if : inputs.new-release-tag == ''
136- uses : actions/upload-artifact@v4
113+ uses : actions/upload-artifact@v6
137114 with :
138115 name : ${{ matrix.toolchain.preset }}
139116 path : " *.zip"
@@ -158,16 +135,16 @@ jobs:
158135 uses : lukka/get-cmake@latest
159136
160137 - name : Setup Python
161- uses : actions/setup-python@v5
138+ uses : actions/setup-python@v6
162139 with :
163- python-version : " >=3.11 "
140+ python-version : " >=3.13 "
164141
165- # Needed pyyaml for clang tidy to enable `-export-fixes` and requests for the python lib downloader
142+ # Needed pyyaml for clang tidy to enable `-export-fixes`
166143 - name : Install pip packages
167- run : pip install pyyaml requests
144+ run : pip install pyyaml
168145
169146 - name : Checkout repository and submodules
170- uses : actions/checkout@v4
147+ uses : actions/checkout@v6
171148 with :
172149 submodules : recursive
173150
@@ -201,7 +178,7 @@ jobs:
201178 uses : egor-tensin/setup-clang@v1
202179
203180 - name : Checkout repository
204- uses : actions/checkout@v4
181+ uses : actions/checkout@v6
205182
206183 - name : Run clang-format
207184 run : |
@@ -219,7 +196,7 @@ jobs:
219196
220197 steps :
221198 - name : Checkout repository
222- uses : actions/checkout@v4
199+ uses : actions/checkout@v6
223200
224201 - name : Check spelling
225202 uses : crate-ci/typos@master
@@ -229,32 +206,58 @@ jobs:
229206
230207 steps :
231208 - name : Checkout repository and submodules
232- uses : actions/checkout@v4
209+ uses : actions/checkout@v6
233210 with :
234211 submodules : recursive
235212
236213 - name : Run pyright
237- uses : jakebailey/pyright-action@v2
214+ uses : jakebailey/pyright-action@v3
238215 with :
239- working-directory : " ./src/ "
216+ working-directory : ./src
240217
241218 ruff :
242219 runs-on : ubuntu-latest
243220
244221 steps :
245222 - name : Checkout repository
246- uses : actions/checkout@v4
223+ uses : actions/checkout@v6
224+ with :
225+ submodules : recursive
247226
248227 - name : Run Ruff Linting
249- uses : chartboost /ruff-action@v1
228+ uses : astral-sh /ruff-action@v4.0.0
250229 with :
251- src : ./ src
230+ src : src
252231
253232 - name : Run Ruff Formatting
254- uses : chartboost/ruff-action@v1
233+ uses : astral-sh/ruff-action@v4.0.0
234+ with :
235+ args : format --check --diff
236+ src : src
237+
238+ stubs :
239+ runs-on : ubuntu-latest
240+
241+ steps :
242+ - name : Checkout repository and submodules
243+ uses : actions/checkout@v6
244+ with :
245+ submodules : recursive
246+
247+ - name : Setup Python
248+ uses : actions/setup-python@v6
255249 with :
256- src : ./src
257- args : format --check
250+ python-version : " >=3.13"
251+
252+ - name : Install pip packages
253+ run : pip install -r libs/pyunrealsdk/stubgen/requirements.txt
254+
255+ - name : Generate stubs
256+ working-directory : libs/pyunrealsdk/
257+ run : python -m stubgen OAK ../../expected_stubs
258+
259+ - name : Make sure stubs are up to date
260+ run : diff -r -s stubs expected_stubs
258261
259262# ==============================================================================
260263
@@ -279,7 +282,7 @@ jobs:
279282
280283 steps :
281284 - name : Download artifacts
282- uses : actions/download-artifact@v4
285+ uses : actions/download-artifact@v6
283286
284287 - name : Upload releases
285288 uses : andelf/nightly-release@main
@@ -315,7 +318,7 @@ jobs:
315318
316319 steps :
317320 - name : Checkout repository
318- uses : actions/checkout@v4
321+ uses : actions/checkout@v6
319322
320323 - name : Download artifacts
321324 uses : actions/download-artifact@v4
0 commit comments