mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-07 16:03:11 +00:00
fix(ci): windows ci
fix(ci): windows ci
This commit is contained in:
commit
6d23c70508
6
.github/scripts/run-windows.ps1
vendored
Normal file
6
.github/scripts/run-windows.ps1
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
param(
|
||||||
|
[string]$BinaryName = "example.exe"
|
||||||
|
)
|
||||||
|
|
||||||
|
$env:PATH = "$PWD\libs;" + $env:PATH
|
||||||
|
& ".\$BinaryName"
|
||||||
3
Makefile
3
Makefile
@ -41,8 +41,7 @@ build:
|
|||||||
|
|
||||||
run:
|
run:
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
pwsh -Command "Copy-Item libs\libcodex.dll ."
|
pwsh -File $(CURDIR)/.github/scripts/run-windows.ps1 -BinaryName $(BIN_NAME)
|
||||||
pwsh -Command ".\$(BIN_NAME)"
|
|
||||||
else ifeq ($(UNAME_S),Darwin)
|
else ifeq ($(UNAME_S),Darwin)
|
||||||
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
|
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
|
||||||
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
|
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user