Skip to content

Commit 6bafabd

Browse files
committed
Update workflows
1 parent 76e0166 commit 6bafabd

File tree

3 files changed

+27
-44
lines changed

3 files changed

+27
-44
lines changed

.github/initial-setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
3131
- name: Cache Template
3232
id: cache
33-
uses: actions/cache@v3
33+
uses: actions/cache@v5
3434
with:
3535
key: template-${{ env.PLATFORM }}-${{ env.GODOT_VERSION }}-${{ env.GODOT_RELEASE_TYPE }}-${{ steps.buildhash.outputs.hash }}
3636
path: ${{ runner.os == 'macOS' && '/Users/runner/Library/Application Support/Godot/export_templates/' || '~/.local/share/godot/export_templates/' }}

.github/workflows/export-optimized.yml

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
env:
1111
PROJECT_NAME: GodSVG
1212
# Which Godot version to use for exporting (e.g., 4.4.1, 4.5)
13-
GODOT_VERSION: 4.6
13+
GODOT_VERSION: 4.6.2
1414
# Which Godot release to use for exporting (e.g., stable, dev5, rc2)
1515
GODOT_RELEASE_TYPE: stable
1616
# Commit hash (found in Github releases)
17-
GODOT_COMMIT_HASH: 89cea143987d564363e15d207438530651d943ac
17+
GODOT_COMMIT_HASH: 001aa128b1cd80dc4e47e823c360bccf45ed6bad
1818
# deprecated=no disables deprecated Godot features, which exist for compat and we don't use.
1919
# d3d12=no, vulkan=no, use_volk=no since we use Compatibility Renderer. TODO disable rendering_device too (Godot issue #103100).
2020
# disable_3d=yes since we don't use 3D features. This automatically disables 3D physics, 3D navigation, and XR.
@@ -42,7 +42,7 @@ jobs:
4242
PLATFORM: "Linux"
4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v6
4646
with:
4747
path: godsvg
4848

@@ -85,30 +85,13 @@ jobs:
8585
run: |
8686
cd godsvg
8787
mkdir -p build
88-
godot --headless --export-release "${{ env.PLATFORM }}" build/GodSVG.x86_64
89-
90-
- name: Debug — show export templates & file info
91-
run: |
92-
echo "HOME: $HOME"
93-
echo "Expected template dir: $HOME/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE_TYPE}"
94-
ls -la "$HOME/.local/share/godot/export_templates/" || true
95-
ls -la "$HOME/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE_TYPE}" || true
96-
echo "--- template file ---"
97-
file "$HOME/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE_TYPE}/linux_release.x86_64" || true
98-
echo "--- exported artifact ---"
99-
file godsvg/build/GodSVG.x86_64 || true
100-
if command -v readelf >/dev/null 2>&1; then
101-
echo "--- readelf symbol count (template) ---"
102-
readelf -s "$HOME/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE_TYPE}/linux_release.x86_64" 2>/dev/null | head -n 20 || true
103-
echo "--- readelf symbol count (artifact) ---"
104-
readelf -s godsvg/build/GodSVG.x86_64 2>/dev/null | head -n 20 || true
105-
fi
88+
godot --headless --export-release "${{ env.PLATFORM }}" build/${{ env.PROJECT_NAME }}.x86_64
10689
10790
- name: Upload artifact
108-
uses: actions/upload-artifact@v4
91+
uses: actions/upload-artifact@v7
10992
with:
11093
name: ${{ env.PROJECT_NAME }}.Linux
111-
path: godsvg/build/GodSVG.x86_64
94+
path: godsvg/build/${{ env.PROJECT_NAME }}.x86_64
11295
if-no-files-found: error
11396
retention-days: 28
11497

@@ -119,7 +102,7 @@ jobs:
119102
PLATFORM: "Windows"
120103
steps:
121104
- name: Checkout repository
122-
uses: actions/checkout@v4
105+
uses: actions/checkout@v6
123106
with:
124107
path: godsvg
125108

@@ -172,13 +155,13 @@ jobs:
172155
run: |
173156
cd godsvg
174157
mkdir -p build
175-
godot --headless --export-release "Windows Desktop" build/GodSVG.exe
158+
godot --headless --export-release "Windows Desktop" build/${{ env.PROJECT_NAME }}.exe
176159
177160
- name: Upload artifact
178-
uses: actions/upload-artifact@v4
161+
uses: actions/upload-artifact@v7
179162
with:
180163
name: ${{ env.PROJECT_NAME }}.Windows
181-
path: godsvg/build/GodSVG.exe
164+
path: godsvg/build/${{ env.PROJECT_NAME }}.exe
182165
if-no-files-found: error
183166
retention-days: 28
184167

@@ -189,7 +172,7 @@ jobs:
189172
PLATFORM: "macOS"
190173
steps:
191174
- name: Checkout repository
192-
uses: actions/checkout@v4
175+
uses: actions/checkout@v6
193176
with:
194177
path: godsvg
195178

@@ -255,13 +238,13 @@ jobs:
255238
run: |
256239
cd godsvg
257240
mkdir -p build
258-
godot --headless --export-release "macOS" build/GodSVG.zip
241+
godot --headless --export-release "macOS" build/${{ env.PROJECT_NAME }}.zip
259242
260243
- name: Upload artifact
261-
uses: actions/upload-artifact@v4
244+
uses: actions/upload-artifact@v7
262245
with:
263246
name: ${{ env.PROJECT_NAME }}.MacOS
264-
path: godsvg/build/GodSVG.zip
247+
path: godsvg/build/${{ env.PROJECT_NAME }}.zip
265248
if-no-files-found: error
266249
retention-days: 28
267250

@@ -272,7 +255,7 @@ jobs:
272255
PLATFORM: "Web"
273256
steps:
274257
- name: Checkout repository
275-
uses: actions/checkout@v4
258+
uses: actions/checkout@v6
276259
with:
277260
path: godsvg
278261

@@ -326,12 +309,12 @@ jobs:
326309
run: |
327310
cd godsvg
328311
mkdir -p build/web
329-
godot --headless --export-release "Web" build/web/GodSVG.html
312+
godot --headless --export-release "Web" build/web/${{ env.PROJECT_NAME }}.html
330313
cd build/web
331-
mv GodSVG.html index.html
314+
mv ${{ env.PROJECT_NAME }}.html index.html
332315
333316
- name: Upload artifact
334-
uses: actions/upload-artifact@v4
317+
uses: actions/upload-artifact@v7
335318
with:
336319
name: ${{ env.PROJECT_NAME }}.Web
337320
path: godsvg/build/web
@@ -345,7 +328,7 @@ jobs:
345328
PLATFORM: "Android"
346329
steps:
347330
- name: Checkout repository
348-
uses: actions/checkout@v4
331+
uses: actions/checkout@v6
349332
with:
350333
path: godsvg
351334

@@ -418,7 +401,7 @@ jobs:
418401
run: |
419402
cd godsvg
420403
mkdir -p build/android
421-
godot --headless --export-debug "Android" build/android/GodSVG.Android.debug.apk
404+
godot --headless --export-debug "Android" build/android/${{ env.PROJECT_NAME }}.Android.debug.apk
422405
423406
- name: Export release project
424407
if: github.event_name == 'workflow_dispatch'
@@ -430,20 +413,20 @@ jobs:
430413
cd godsvg
431414
mkdir -p build/android
432415
echo "${{ secrets.KEYSTORE }}" | base64 -d > /tmp/release.keystore
433-
godot --headless --export-release "Android" build/android/GodSVG.Android.apk
416+
godot --headless --export-release "Android" build/android/${{ env.PROJECT_NAME }}.Android.apk
434417
435418
- name: Upload debug artifact
436-
uses: actions/upload-artifact@v4
419+
uses: actions/upload-artifact@v7
437420
with:
438421
name: ${{ env.PROJECT_NAME }}.debug.Android
439-
path: godsvg/build/android/GodSVG.Android.debug.apk
422+
path: godsvg/build/android/${{ env.PROJECT_NAME }}.Android.debug.apk
440423
if-no-files-found: error
441424
retention-days: 28
442425

443426
- name: Upload release artifact
444-
uses: actions/upload-artifact@v4
427+
uses: actions/upload-artifact@v7
445428
with:
446429
name: ${{ env.PROJECT_NAME }}.Android
447-
path: godsvg/build/android/GodSVG.Android.apk
430+
path: godsvg/build/android/${{ env.PROJECT_NAME }}.Android.apk
448431
if-no-files-found: ignore
449432
retention-days: 28

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ GodSVG also runs on web - here's a link to the official web editor: https://gods
4343

4444
To run the latest unreleased version, you can download Godot from https://godotengine.org and also download GodSVG's repository files. Once they are on your machine, open Godot, click on the "Import" button, and import the `project.godot` folder from this repository.
4545

46-
Development is currently happening on v4.6, so prefer this version if you're downloading GodSVG for your own use or for contributing.
46+
Development is currently happening on v4.6.2, so prefer this version if you're downloading GodSVG for your own use or for contributing.
4747

4848
Another way to run the latest dev build is to open a recent commit and download its artifacts (Checks > export-optimized > Summary > Artifacts). You must log into Github for that.
4949

0 commit comments

Comments
 (0)