Skip to content

Commit 7a7312c

Browse files
committed
Update library paths in CI
1 parent 8487c64 commit 7a7312c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ build universal:
2727
- install_name_tool -add_rpath @executable_path $BINARY_NAME-arm64
2828
- install_name_tool -add_rpath /opt/homebrew/opt/libolm/lib $BINARY_NAME-arm64
2929
- install_name_tool -add_rpath /usr/local/opt/libolm/lib $BINARY_NAME-arm64
30+
- install_name_tool -add_rpath /usr/local/lib $BINARY_NAME-arm64
3031
# Build amd64 binary
3132
- MACOSX_DEPLOYMENT_TARGET=10.13 LIBRARY_PATH=/usr/local/lib CGO_ENABLED=1 GOARCH=amd64 go build -ldflags "$GO_LDFLAGS" -o $BINARY_NAME-amd64
32-
- install_name_tool -change /usr/local/opt/libolm/lib/libolm.3.dylib @rpath/libolm.3.dylib $BINARY_NAME-amd64
33+
- install_name_tool -change /usr/local/lib/libolm.3.dylib @rpath/libolm.3.dylib $BINARY_NAME-amd64
3334
- install_name_tool -add_rpath @executable_path $BINARY_NAME-amd64
3435
- install_name_tool -add_rpath /usr/local/opt/libolm/lib $BINARY_NAME-amd64
36+
- install_name_tool -add_rpath /usr/local/lib $BINARY_NAME-amd64
3537
# Create universal libolm and bridge binary
36-
- lipo -create -output libolm.3.dylib /opt/homebrew/opt/libolm/lib/libolm.3.dylib /usr/local/opt/libolm/lib/libolm.3.dylib
38+
- lipo -create -output libolm.3.dylib /opt/homebrew/opt/libolm/lib/libolm.3.dylib /usr/local/lib/libolm.3.dylib
3739
- lipo -create -output $BINARY_NAME $BINARY_NAME-arm64 $BINARY_NAME-amd64
3840
artifacts:
3941
paths:

0 commit comments

Comments
 (0)