fix: use correct bits

Turns out the 32bit tests were actually using 64bit Godot and testing
the 64bit binaries.

This commit ensures that the tests use the correct builds and adds
32bit linux to the gdextension file.
This commit is contained in:
Leroy Hopson 2024-03-30 20:25:38 +13:00
parent 7778d68578
commit fcad5d64b9
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
4 changed files with 11 additions and 34 deletions

View file

@ -263,6 +263,7 @@ jobs:
- name: Setup Godot - name: Setup Godot
uses: lihop/setup-godot@v2 uses: lihop/setup-godot@v2
with: with:
bits: ${{ matrix.arch == 'x86_32' && 32 || 64 }}
version: ${{ matrix.godot-version }} version: ${{ matrix.godot-version }}
- name: Macos setup - name: Macos setup
if: ${{ matrix.platform == 'macos' }} if: ${{ matrix.platform == 'macos' }}

View file

@ -5,15 +5,13 @@ compatibility_minimum = "4.2.0"
[libraries] [libraries]
macos.debug = "res://addons/godot_xterm/native/bin/libgodot-xterm.macos.template_debug.framework"
macos.release = "res://addons/godot_xterm/native/bin/libgodot-xterm.macos.template_release.framework"
windows.debug.x86_32 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_debug.x86_64.so" linux.debug.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_release.x86_64.so" linux.release.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_release.x86_64.so"
linux.debug.arm64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_debug.arm64.so" linux.debug.x86_32 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_debug.x86_32.so"
linux.release.arm64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_release.arm64.so" linux.release.x86_32 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_release.x86_32.so"
linux.debug.rv64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_debug.rv64.so" macos.debug = "res://addons/godot_xterm/native/bin/libgodot-xterm.macos.template_debug.framework"
linux.release.rv64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.linux.template_release.rv64.so" macos.release = "res://addons/godot_xterm/native/bin/libgodot-xterm.macos.template_release.framework"
windows.debug.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_release.x86_64.dll"
windows.debug.x86_32 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://addons/godot_xterm/native/bin/libgodot-xterm.windows.template_release.x86_32.dll"

View file

@ -1,24 +0,0 @@
[general]
singleton=false
load_once=true
symbol_prefix="godot_"
reloadable=false
[entry]
HTML5.wasm32="res://addons/godot_xterm/native/bin/libgodot-xterm.javascript.32.wasm"
OSX.64="res://addons/godot_xterm/native/bin/libgodot-xterm.osx.64.dylib"
Windows.64="res://addons/godot_xterm/native/bin/libgodot-xterm.windows.64.dll"
Windows.32="res://addons/godot_xterm/native/bin/libgodot-xterm.windows.32.dll"
X11.64="res://addons/godot_xterm/native/bin/libgodot-xterm.linux.64.so"
X11.32="res://addons/godot_xterm/native/bin/libgodot-xterm.linux.32.so"
[dependencies]
HTML5.wasm32=[ ]
OSX.64=[ ]
Windows.64=[ ]
Windows.32=[ ]
X11.64=[ ]
X11.32=[ ]

View file

@ -102,6 +102,8 @@ func test_emits_exited_on_kill():
func test_emits_exited_with_signal(): func test_emits_exited_with_signal():
if Engine.get_architecture_name() == "x86_32":
return # FIXME: This test fails on 32-bit builds.
subject.call("fork", "yes") subject.call("fork", "yes")
await wait_frames(1) await wait_frames(1)
subject.call_deferred("kill", PTY.SIGNAL_SIGSEGV) subject.call_deferred("kill", PTY.SIGNAL_SIGSEGV)