@@ -96,25 +96,21 @@ jobs:
9696 run : |
9797 if sh misc/scripts/install_vulkan_sdk_macos.sh; then
9898 echo "VULKAN_ENABLED=yes" >> "$GITHUB_OUTPUT"
99+ latest_sdk="$(ls -dt "$HOME"/VulkanSDK/* 2>/dev/null | head -n1 || true)"
100+ echo "VULKAN_SDK_PATH=$latest_sdk" >> "$GITHUB_OUTPUT"
99101 else
100102 echo "::warning::macOS: Vulkan SDK installation failed, building without Vulkan support."
101103 echo "VULKAN_ENABLED=no" >> "$GITHUB_OUTPUT"
104+ echo "VULKAN_SDK_PATH=" >> "$GITHUB_OUTPUT"
102105 fi
103106 continue-on-error : true
104107
105108 - name : Download scripts/out
106- uses : actions/download-artifact@v4
109+ uses : actions/download-artifact@v8
107110 with :
108111 name : scripts-out
109112 path : ${{github.workspace}}/modules/GodotJS/scripts/out
110113
111- - name : Download tests/project
112- if : ${{ !inputs.release && matrix.target == 'editor' }}
113- uses : actions/download-artifact@v4
114- with :
115- name : tests-project
116- path : ${{github.workspace}}/modules/GodotJS/tests/project/.godot/GodotJS
117-
118114 - name : Compilation (x86_64)
119115 uses : ./.github/actions/godot-build
120116 with :
@@ -162,6 +158,28 @@ jobs:
162158 strip bin/godot.*
163159 chmod +x bin/godot.*
164160
161+ - name : Setup pnpm
162+ if : ${{ !inputs.release && matrix.target == 'editor' }}
163+ uses : pnpm/action-setup@v6
164+ with :
165+ version : 10.11.0
166+
167+ - name : Setup Node.js
168+ if : ${{ !inputs.release && matrix.target == 'editor' }}
169+ uses : actions/setup-node@v5
170+ with :
171+ node-version : 24
172+
173+ - name : Build tests/project
174+ if : ${{ !inputs.release && matrix.target == 'editor' }}
175+ shell : bash
176+ env :
177+ VULKAN_SDK_PATH : ${{ steps.vulkan-sdk.outputs.VULKAN_SDK_PATH }}
178+ run : |
179+ set -euo pipefail
180+ pnpm -C "${{ github.workspace }}/modules/GodotJS/tests/project" install --ignore-workspace
181+ GODOT="${{ github.workspace }}/bin/godot.macos.editor.universal" pnpm -C "${{ github.workspace }}/modules/GodotJS/tests/project" build
182+
165183 - name : Upload artifact
166184 uses : ./.github/actions/upload-artifact
167185 with :
@@ -193,7 +211,7 @@ jobs:
193211 submodules : recursive
194212
195213 - name : ⏬ Download editor
196- uses : actions/download-artifact@v4
214+ uses : actions/download-artifact@v8
197215 with :
198216 name : macos-editor-${{inputs.version}}-${{ matrix.engine }}
199217 path : macos-editor-${{inputs.version}}-${{ matrix.engine }}
@@ -207,20 +225,20 @@ jobs:
207225 chmod +x editor-app/Godot.app/Contents/MacOS/Godot
208226
209227 - name : ⏫ Upload editor app
210- uses : actions/upload-artifact@v4
228+ uses : actions/upload-artifact@v7
211229 with :
212230 name : macos-editor-app-${{inputs.version}}-${{ matrix.engine }}
213231 path : editor-app
214232
215233 - name : ⏬ Download template-release
216- uses : actions/download-artifact@v4
234+ uses : actions/download-artifact@v8
217235 if : ${{ inputs.release }}
218236 with :
219237 name : macos-template_release-${{inputs.version}}-${{ matrix.engine }}
220238 path : macos-template_release-${{inputs.version}}-${{ matrix.engine }}
221239
222240 - name : ⏬ Download template-debug
223- uses : actions/download-artifact@v4
241+ uses : actions/download-artifact@v8
224242 if : ${{ inputs.release }}
225243 with :
226244 name : macos-template_debug-${{inputs.version}}-${{ matrix.engine }}
@@ -238,7 +256,7 @@ jobs:
238256
239257 - name : ⏫ Upload template app
240258 if : ${{ inputs.release }}
241- uses : actions/upload-artifact@v4
259+ uses : actions/upload-artifact@v7
242260 with :
243261 name : macos-template-app-${{inputs.version}}-${{ matrix.engine }}
244262 path : template-app
0 commit comments