2222 platform : linux
2323 artifact-name : godot-cpp-linux-glibc2.27-x86_64-release
2424 artifact-path : bin/libgodot-cpp.linux.template_release.x86_64.a
25+ run-tests : true
2526 cache-name : linux-x86_64
2627
2728 - name : 🐧 Linux (GCC, Double Precision)
@@ -30,13 +31,15 @@ jobs:
3031 artifact-name : godot-cpp-linux-glibc2.27-x86_64-double-release
3132 artifact-path : bin/libgodot-cpp.linux.template_release.double.x86_64.a
3233 flags : precision=double
34+ run-tests : false
3335 cache-name : linux-x86_64-f64
3436
3537 - name : 🏁 Windows (x86_64, MSVC)
3638 os : windows-2019
3739 platform : windows
3840 artifact-name : godot-cpp-windows-msvc2019-x86_64-release
3941 artifact-path : bin/libgodot-cpp.windows.template_release.x86_64.lib
42+ run-tests : false
4043 cache-name : windows-x86_64-msvc
4144
4245 - name : 🏁 Windows (x86_64, MinGW)
4548 artifact-name : godot-cpp-linux-mingw-x86_64-release
4649 artifact-path : bin/libgodot-cpp.windows.template_release.x86_64.a
4750 flags : use_mingw=yes
51+ run-tests : false
4852 cache-name : windows-x86_64-mingw
4953
5054 - name : 🍎 macOS (universal)
5357 artifact-name : godot-cpp-macos-universal-release
5458 artifact-path : bin/libgodot-cpp.macos.template_release.universal.a
5559 flags : arch=universal
60+ run-tests : false
5661 cache-name : macos-universal
5762
5863 - name : 🤖 Android (arm64)
6166 artifact-name : godot-cpp-android-arm64-release
6267 artifact-path : bin/libgodot-cpp.android.template_release.arm64.a
6368 flags : ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64
69+ run-tests : false
6470 cache-name : android-arm64
6571
6672 - name : 🍏 iOS (arm64)
6975 artifact-name : godot-cpp-ios-arm64-release
7076 artifact-path : bin/libgodot-cpp.ios.template_release.arm64.a
7177 flags : arch=arm64
78+ run-tests : false
7279 cache-name : ios-arm64
7380
7481 env :
@@ -124,6 +131,31 @@ jobs:
124131 cd test
125132 scons platform=${{ matrix.platform }} target=template_release ${{ matrix.flags }}
126133
134+ - name : Download latest Godot artifacts
135+ uses : dsnopek/action-download-artifact@1322f74e2dac9feed2ee76a32d9ae1ca3b4cf4e9
136+ if : ${{ matrix.run-tests }}
137+ with :
138+ repo : godotengine/godot
139+ branch : master
140+ event : push
141+ workflow : linux_builds.yml
142+ workflow_conclusion : success
143+ name : linux-editor-mono
144+ search_artifacts : true
145+ check_artifacts : true
146+ ensure_latest : true
147+ path : godot-artifacts
148+
149+ - name : Run tests
150+ if : ${{ matrix.run-tests }}
151+ run : |
152+ chmod +x ./godot-artifacts/godot.linuxbsd.editor.x86_64.mono
153+ ./godot-artifacts/godot.linuxbsd.editor.x86_64.mono --headless --version
154+ cd test
155+ # Need to run the editor so .godot is generated... but it crashes! Ignore that :-)
156+ (cd project && (../../godot-artifacts/godot.linuxbsd.editor.x86_64.mono --editor --headless --quit >/dev/null 2>&1 || true))
157+ GODOT=../godot-artifacts/godot.linuxbsd.editor.x86_64.mono ./run-tests.sh
158+
127159 - name : Upload artifact
128160 uses : actions/upload-artifact@v3
129161 with :
0 commit comments