We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a886c3f + 782d586 commit 6d23c70Copy full SHA for 6d23c70
.github/scripts/run-windows.ps1
@@ -0,0 +1,6 @@
1
+param(
2
+ [string]$BinaryName = "example.exe"
3
+)
4
+
5
+$env:PATH = "$PWD\libs;" + $env:PATH
6
+& ".\$BinaryName"
Makefile
@@ -41,8 +41,7 @@ build:
41
42
run:
43
ifeq ($(OS),Windows_NT)
44
- pwsh -Command "Copy-Item libs\libcodex.dll ."
45
- pwsh -Command ".\$(BIN_NAME)"
+ pwsh -File $(CURDIR)/.github/scripts/run-windows.ps1 -BinaryName $(BIN_NAME)
46
else ifeq ($(UNAME_S),Darwin)
47
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
48
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
0 commit comments