fix(ci): windows ci

fix(ci): windows ci
This commit is contained in:
Arnaud 2025-10-15 16:30:03 +04:00 committed by GitHub
commit 6d23c70508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

6
.github/scripts/run-windows.ps1 vendored Normal file
View File

@ -0,0 +1,6 @@
param(
[string]$BinaryName = "example.exe"
)
$env:PATH = "$PWD\libs;" + $env:PATH
& ".\$BinaryName"

View File

@ -41,8 +41,7 @@ build:
run:
ifeq ($(OS),Windows_NT)
pwsh -Command "Copy-Item libs\libcodex.dll ."
pwsh -Command ".\$(BIN_NAME)"
pwsh -File $(CURDIR)/.github/scripts/run-windows.ps1 -BinaryName $(BIN_NAME)
else ifeq ($(UNAME_S),Darwin)
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)