This commit is contained in:
Arnaud 2025-10-15 18:51:39 +02:00
parent eb164349eb
commit c2b1d2036c
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
2 changed files with 13 additions and 13 deletions

View File

@ -10,25 +10,25 @@ jobs:
strategy: strategy:
matrix: matrix:
target: target:
- os: ubuntu-latest # - os: ubuntu-latest
name: linux # name: linux
cpu: amd64 # cpu: amd64
lib_ext: so # lib_ext: so
- os: ubuntu-24.04-arm # - os: ubuntu-24.04-arm
cpu: arm64 # cpu: arm64
name: linux # name: linux
lib_ext: so # lib_ext: so
- os: macos-latest - os: macos-latest
lib_ext: so lib_ext: so
name: macos name: macos
cpu: arm64 cpu: arm64
- os: windows-latest # - os: windows-latest
cpu: amd64 # cpu: amd64
name: windows # name: windows
lib_ext: dll # lib_ext: dll
steps: steps:
- name: Check out sources - name: Check out sources

View File

@ -5,7 +5,7 @@ LIBS_DIR := $(abspath ./libs)
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
CGO_CFLAGS := -I$(LIBS_DIR) CGO_CFLAGS := -I$(LIBS_DIR)
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/libs/libcodex.dylib
else else
CGO_CFLAGS := -I$(LIBS_DIR) CGO_CFLAGS := -I$(LIBS_DIR)
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR) CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)