Skip to content

Commit 5037d2d

Browse files
authored
WINE test for cross-compiled .exe binaries on Ubuntu (#129)
WINE test for cross-compiled .exe binaries on Ubuntu
1 parent 2fa40dd commit 5037d2d

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

.github/workflows/.ubuntu.yml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,53 @@ jobs:
143143
- name: build
144144
run: |
145145
sudo apt update
146-
sudo apt-get install cmake curl tar
146+
sudo apt-get install cmake curl tar wine
147147
mkdir build-debug && cd build-debug
148148
export ZIG=zig-linux-x86_64-0.12.0-dev.1834+f36ac227b
149149
curl -o zig.tar.xz "https://ziglang.org/builds/$ZIG.tar.xz"
150150
tar -xf zig.tar.xz
151151
export CC="$(pwd)/$ZIG/zig cc -target x86_64-windows"
152152
cmake .. -DCMAKE_SYSTEM_NAME=Windows
153-
make -j
153+
make -j
154+
echo "==============" && echo sc_array_test && echo "=============="
155+
DISPLAY= wine ./array/sc_array_test.exe
156+
echo "==============" && echo sc_buf_test && echo "=============="
157+
DISPLAY= wine ./buffer/sc_buf_test.exe
158+
echo "==============" && echo sc_cond_test && echo "=============="
159+
DISPLAY= wine ./condition/sc_cond_test.exe
160+
echo "==============" && echo sc_crc32_test && echo "=============="
161+
DISPLAY= wine ./crc32/sc_crc32_test.exe
162+
echo "==============" && echo sc_heap_test && echo "=============="
163+
DISPLAY= wine ./heap/sc_heap_test.exe
164+
echo "==============" && echo sc_ini_test && echo "=============="
165+
DISPLAY= wine ./ini/sc_ini_test.exe
166+
echo "==============" && echo sc_list_test && echo "=============="
167+
DISPLAY= wine ./linked-list/sc_list_test.exe
168+
echo "==============" && echo sc_log_test && echo "=============="
169+
DISPLAY= wine ./logger/sc_log_test.exe
170+
echo "==============" && echo sc_map_test && echo "=============="
171+
DISPLAY= wine ./map/sc_map_test.exe
172+
echo "==============" && echo sc_mmap_test && echo "=============="
173+
# DISPLAY= wine ./memory-map/sc_mmap_test.exe <-- hangs
174+
echo "==============" && echo sc_mutex_test && echo "=============="
175+
DISPLAY= wine ./mutex/sc_mutex_test.exe
176+
echo "==============" && echo sc_option_test && echo "=============="
177+
DISPLAY= wine ./option/sc_option_test.exe
178+
echo "==============" && echo sc_queue_test && echo "=============="
179+
DISPLAY= wine ./queue/sc_queue_test.exe
180+
echo "==============" && echo sc_test && echo "=============="
181+
DISPLAY= wine ./sc/sc_test.exe
182+
echo "==============" && echo sc_signal_test && echo "=============="
183+
DISPLAY= wine ./signal/sc_signal_test.exe
184+
echo "==============" && echo sc_socket_test && echo "=============="
185+
# DISPLAY= wine ./socket/sc_socket_test.exe <-- Assertion failed
186+
echo "==============" && echo sc_str_test && echo "=============="
187+
DISPLAY= wine ./string/sc_str_test.exe
188+
echo "==============" && echo sc_thread_test && echo "=============="
189+
DISPLAY= wine ./thread/sc_thread_test.exe
190+
echo "==============" && echo sc_time_test && echo "=============="
191+
# DISPLAY= wine ./time/sc_time_test.exe <-- wine: Unhandled illegal instruction
192+
echo "==============" && echo sc_timer_test && echo "=============="
193+
DISPLAY= wine ./timer/sc_timer_test.exe
194+
echo "==============" && echo sc_uri_test && echo "=============="
195+
DISPLAY= wine ./uri/sc_uri_test.exe

0 commit comments

Comments
 (0)