Skip to content

Commit 685d24c

Browse files
committed
Fix pack steps to export native binary path
1 parent 0e77a35 commit 685d24c

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,21 @@ jobs:
8181
run: |
8282
set -euo pipefail
8383
: "${GITHUB_WORKSPACE:=${PWD}}"
84-
MAC_NATIVE_BINARY="${GITHUB_WORKSPACE}/native/build/libmlxsharp.dylib"
85-
echo "Packing MLXSharp with native binary: ${MAC_NATIVE_BINARY}"
86-
dotnet pack \
87-
src/MLXSharp/MLXSharp.csproj \
84+
export MLXSharpMacNativeBinary="${GITHUB_WORKSPACE}/native/build/libmlxsharp.dylib"
85+
echo "Packing MLXSharp with native binary: ${MLXSharpMacNativeBinary}"
86+
dotnet pack src/MLXSharp/MLXSharp.csproj \
8887
--configuration Release \
89-
--output artifacts/packages \
90-
"/p:MLXSharpMacNativeBinary=${MAC_NATIVE_BINARY}"
88+
--output artifacts/packages
9189
9290
- name: Pack MLXSharp.SemanticKernel library
9391
run: |
9492
set -euo pipefail
9593
: "${GITHUB_WORKSPACE:=${PWD}}"
96-
MAC_NATIVE_BINARY="${GITHUB_WORKSPACE}/native/build/libmlxsharp.dylib"
97-
echo "Packing MLXSharp.SemanticKernel with native binary: ${MAC_NATIVE_BINARY}"
98-
dotnet pack \
99-
src/MLXSharp.SemanticKernel/MLXSharp.SemanticKernel.csproj \
94+
export MLXSharpMacNativeBinary="${GITHUB_WORKSPACE}/native/build/libmlxsharp.dylib"
95+
echo "Packing MLXSharp.SemanticKernel with native binary: ${MLXSharpMacNativeBinary}"
96+
dotnet pack src/MLXSharp.SemanticKernel/MLXSharp.SemanticKernel.csproj \
10097
--configuration Release \
101-
--output artifacts/packages \
102-
"/p:MLXSharpMacNativeBinary=${MAC_NATIVE_BINARY}"
98+
--output artifacts/packages
10399
104100
- name: Verify package contains native libraries
105101
run: |

0 commit comments

Comments
 (0)