@@ -33,15 +33,18 @@ jobs:
3333 vendor : unknown
3434 env : -gnu
3535 lib : libnative.so
36+ editor_lib : libeditor.so
3637 - platform : windows
3738 os : windows-2025
3839 vendor : pc
3940 env : ' -msvc'
4041 lib : native.dll
42+ editor_lib : editor.dll
4143 - platform : darwin
4244 os : macos-14
4345 vendor : apple
4446 lib : libnative.dylib
47+ editor_lib : libeditor.dylib
4548 exclude :
4649 - platform : linux
4750 arch : aarch64
@@ -78,12 +81,20 @@ jobs:
7881 run : |
7982 cd native/
8083 ${{ env.CARGO_BUILD }} ${{ env.TARGET_TRIPLET}} --release
81- - name : Debug Artifacts
84+
85+ - name : Debug libnative Artifact
8286 uses : actions/upload-artifact@v4
87+ if : ${{ !inputs.release }}
8388 with :
8489 name : libnative-${{ matrix.platform }}-${{ matrix.arch }}-debug
8590 path : native/target/${{ env.TARGET_TRIPLET }}/debug/${{ matrix.lib }}
86- - name : Release Artifacts
91+ - name : Debug libeditor Artifact
92+ uses : actions/upload-artifact@v4
93+ with :
94+ name : libeditor-${{ matrix.platform }}-${{ matrix.arch }}-debug
95+ path : native/target/${{ env.TARGET_TRIPLET }}/debug/${{ matrix.editor_lib }}
96+
97+ - name : Release libnative Artifacts
8798 uses : actions/upload-artifact@v4
8899 if : inputs.release
89100 with :
@@ -104,6 +115,7 @@ jobs:
104115 aarch64 : true
105116 extension : ' .dmg'
106117 lib : libnative.dylib
118+ editor_lib : " libeditor.dylib"
107119 template_dir : ' $HOME/Library/Application\ Support/Godot/export_templates'
108120 godot_artefact : ' macOS.universal'
109121 - profile : ' Windows'
@@ -115,6 +127,7 @@ jobs:
115127 aarch64 : true
116128 extension : ' .exe'
117129 lib : native.dll
130+ editor_lib : " libeditor.so"
118131 template_dir : ' $HOME/.local/share/godot/export_templates'
119132 godot_artefact : ' linux.x86_64'
120133 - profile : ' Linux'
@@ -123,6 +136,7 @@ jobs:
123136 vendor : ' unknown'
124137 os : ubuntu-24.04
125138 lib : libnative.so
139+ editor_lib : " libeditor.so"
126140 template_dir : ' $HOME/.local/share/godot/export_templates'
127141 godot_artefact : ' linux.x86_64'
128142 x86_64 : true
@@ -162,38 +176,42 @@ jobs:
162176 cd ${{ matrix.template_dir }}/${{ matrix.version }}.stable
163177 curl -LO https://github.com/godotengine/godot/releases/download/${{ matrix.version }}-stable/Godot_v${{ matrix.version }}-stable_export_templates.tpz
164178 unzip -j Godot_v${{ matrix.version }}-stable_export_templates.tpz
165- - name : download host libs
166- if : ${{ matrix.platform != 'linux' && startsWith(matrix.os, 'ubuntu') }}
167- uses : actions/download-artifact@v5
179+ - name : download editor lib
180+ uses : actions/download-artifact@v8
168181 with :
169- name : libnative-linux-x86_64-debug
170- path : native/target/x86_64-unknown-linux-gnu/debug/
171-
182+ name : libeditor-${{ startsWith(matrix.os, 'ubuntu') && 'linux' || matrix.platform }}-${{ startsWith(matrix.os, 'ubuntu') && 'x86_64' || 'aarch64' }}-debug
183+ path : native/target/${{ startsWith(matrix.os, 'ubuntu') && 'x86_64-unknown-linux-gnu' || 'aarch64-apple-darwin' }}/debug/
184+ merge-multiple : true
185+
172186 - name : download x86_64 debug libs
173- if : matrix.x86_64
174- uses : actions/download-artifact@v5
187+ if : ${{ matrix.x86_64 && !inputs.release }}
188+ uses : actions/download-artifact@v8
175189 with :
176190 name : libnative-${{ matrix.platform }}-x86_64-debug
177191 path : native/target/x86_64-${{ matrix.vendor }}-${{ matrix.platform }}${{ matrix.env }}/debug/
192+ merge-multiple : true
178193 - name : download x86_64 release libs
179- if : ${{ matrix.x86_64 && inputs.release }}
180- uses : actions/download-artifact@v5
194+ if : ${{ matrix.x86_64 && inputs.release }}
195+ uses : actions/download-artifact@v8
181196 with :
182197 name : libnative-${{ matrix.platform }}-x86_64-release
183198 path : native/target/x86_64-${{ matrix.vendor }}-${{ matrix.platform }}${{ matrix.env }}/release/
199+ merge-multiple : true
184200
185201 - name : download aarch64 debug libs
186- if : matrix.aarch64
187- uses : actions/download-artifact@v5
202+ if : ${{ matrix.aarch64 && !inputs.release }}
203+ uses : actions/download-artifact@v8
188204 with :
189205 name : libnative-${{ matrix.platform }}-aarch64-debug
190206 path : native/target/aarch64-${{ matrix.vendor }}-${{ matrix.platform }}${{ matrix.env }}/debug/
207+ merge-multiple : true
191208 - name : download aarch64 release libs
192209 if : ${{ matrix.aarch64 && inputs.release }}
193- uses : actions/download-artifact@v5
210+ uses : actions/download-artifact@v8
194211 with :
195212 name : libnative-${{ matrix.platform }}-aarch64-release
196213 path : native/target/aarch64-${{ matrix.vendor }}-${{ matrix.platform }}${{ matrix.env }}/release/
214+ merge-multiple : true
197215
198216 - name : create universal libnative
199217 if : matrix.platform == 'darwin'
@@ -210,8 +228,10 @@ jobs:
210228 let aarch64_debug = $"($aarch64_path)/debug/${{ matrix.lib }}"
211229 let aarch64_release = $"($aarch64_path)/release/${{ matrix.lib }}"
212230
213- mkdir $"native/target/universal-($platform_dir)/debug/"
214- lipo -create $x86_debug $aarch64_debug -output $"native/target/universal-($platform_dir)/debug/${{ matrix.lib }}"
231+ if !$release {
232+ mkdir $"native/target/universal-($platform_dir)/debug/"
233+ lipo -create $x86_debug $aarch64_debug -output $"native/target/universal-($platform_dir)/debug/${{ matrix.lib }}"
234+ }
215235
216236 if $release {
217237 mkdir $"native/target/universal-($platform_dir)/release/"
@@ -234,10 +254,7 @@ jobs:
234254 let profile = if $release { "release" } else { "debug" }
235255
236256 rm -r $"native/target/x86_64-($platform_dir)/($profile)/"
237-
238- if $release {
239- rm -r $"native/target/aarch64-($platform_dir)/($profile)/"
240- }
257+ rm -r $"native/target/aarch64-($platform_dir)/($profile)/"
241258
242259 - name : export-debug
243260 shell : nu {0}
@@ -272,4 +289,4 @@ jobs:
272289 - uses : actions/upload-artifact@v4
273290 with :
274291 name : SimChopper_${{ matrix.profile }}_${{ steps.describe.outputs.ref }}
275- path : ${{ env.EXPORT_DIR }}
292+ path : ${{ env.EXPORT_DIR }}
0 commit comments