diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a098c0e..79a3d86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,7 @@ jobs: dub build :mrt dub build :user_data dub build :imgui + dub build :droptest - name: (Zig) Running Test if: runner.os != 'Windows' diff --git a/dub.sdl b/dub.sdl index 1e895c5..6c41d32 100644 --- a/dub.sdl +++ b/dub.sdl @@ -189,3 +189,14 @@ subPackage { excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/droptest.d" "src/shaders/*.d" preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact" } +subPackage { + name "droptest" + targetType "executable" + targetPath "build" + sourceFiles "src/examples/droptest.d" + libs "sokol" + lflags "-Lzig-out/lib" platform="posix" + lflags "/LIBPATH:zig-out/lib" platform="windows" + excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/imgui.d" "src/shaders/*.d" + preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact" +}