Skip to content

Commit 6d23c70

Browse files
authored
fix(ci): windows ci
fix(ci): windows ci
2 parents a886c3f + 782d586 commit 6d23c70

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/scripts/run-windows.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
param(
2+
[string]$BinaryName = "example.exe"
3+
)
4+
5+
$env:PATH = "$PWD\libs;" + $env:PATH
6+
& ".\$BinaryName"

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ build:
4141

4242
run:
4343
ifeq ($(OS),Windows_NT)
44-
pwsh -Command "Copy-Item libs\libcodex.dll ."
45-
pwsh -Command ".\$(BIN_NAME)"
44+
pwsh -File $(CURDIR)/.github/scripts/run-windows.ps1 -BinaryName $(BIN_NAME)
4645
else ifeq ($(UNAME_S),Darwin)
4746
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
4847
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)

0 commit comments

Comments
 (0)