mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 06:33:35 +00:00
fixing unit tests CI
This commit is contained in:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
- name: Configure xmake and install dependencies
|
||||
run: |
|
||||
cd MacroUnitTest
|
||||
xmake config --ccache=n --yes
|
||||
xmake -P . config --ccache=n --yes
|
||||
|
||||
# Save dependencies
|
||||
- name: Save cached xmake dependencies
|
||||
@@ -73,4 +73,4 @@ jobs:
|
||||
- name: Build and run unit tester
|
||||
run: |
|
||||
cd MacroUnitTest
|
||||
xmake run MacroUnitTest --headless --path=" ${GITHUB_WORKSPACE}/libmlx.so"
|
||||
xmake run -P . MacroUnitTest --headless --path="{{ runner.workspace }}/libmlx.so"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- Global settings
|
||||
|
||||
add_requires("libsdl", { configs = { sdlmain = false } })
|
||||
add_requires("libsdl2", { configs = { sdlmain = false } })
|
||||
|
||||
add_rules("mode.debug", "mode.release", "mode.releasedbg")
|
||||
set_languages("cxx20", "c11")
|
||||
@@ -63,7 +63,7 @@ target("mlx")
|
||||
|
||||
add_files("runtime/Sources/**.cpp")
|
||||
|
||||
add_packages("libsdl")
|
||||
add_packages("libsdl2")
|
||||
|
||||
if is_mode("debug") then
|
||||
add_defines("DEBUG")
|
||||
@@ -98,5 +98,5 @@ target("Test")
|
||||
|
||||
add_defines("SDL_MAIN_HANDLED")
|
||||
|
||||
add_packages("libsdl")
|
||||
add_packages("libsdl2")
|
||||
target_end()
|
||||
|
||||
Reference in New Issue
Block a user