From a978f575f721f4043ca8f817c1ef50d8caf9aab4 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Fri, 9 Feb 2024 17:06:22 +0100 Subject: [PATCH] CI: Enable tests on Windows --- .github/workflows/e2e.yml | 2 ++ dub.json | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 02a252a..ef608fb 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -47,6 +47,8 @@ jobs: # - os: { name: macOS-13-xlarge, arch: arm64-apple-darwin } # target: { name: clang-15, compiler: clang, cxx-version: 15.0.1 } # dc: ldc-latest + - os: { name: windows-latest } + dc: ldc-latest # Using a specific version for reproductibility. # Feel free to update when a new release has matured. diff --git a/dub.json b/dub.json index c5140e3..87550bc 100644 --- a/dub.json +++ b/dub.json @@ -16,11 +16,16 @@ "lflags-posix": [ "-lstdc++" ], "lflags-linux": [ "--export-dynamic" ], "lflags-osx": [ "-export_dynamic" ], - "preGenerateCommands": [ + "preGenerateCommands-posix": [ "$PACKAGE_DIR/extras/cxx-wrapper.sh vector", "$PACKAGE_DIR/extras/cxx-wrapper.sh list" ], - "sourceFiles": [ "extras/*.o" ] + "preGenerateCommands-windows": [ + "cl /c /Fo: $PACKAGE_DIR/extras/ $PACKAGE_DIR/extras/vector.cpp", + "cl /c /Fo: $PACKAGE_DIR/extras/ $PACKAGE_DIR/extras/list.cpp", + ], + "sourceFiles-posix": [ "extras/*.o" ], + "sourceFiles-windows": [ "extras/*.obj" ] } ] }