Skip to content

Commit 9d204bc

Browse files
committed
Refactor macOS build script to use absolute paths for output directory and dylib copy.
1 parent 83869c7 commit 9d204bc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/scripts/build-macos.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ cmake .. \
4747

4848
cmake --build . --config Release -j$(sysctl -n hw.ncpu)
4949

50-
# Create output directory
51-
mkdir -p "../../../NullOpsDevs.LibSsh/runtimes/$PLATFORM/native"
50+
# Create output directory using absolute path
51+
OUTPUT_DIR="$GITHUB_WORKSPACE/NullOpsDevs.LibSsh/runtimes/$PLATFORM/native"
52+
mkdir -p "$OUTPUT_DIR"
5253

5354
# Copy the dylib
54-
cp src/libssh2*.dylib "../../../NullOpsDevs.LibSsh/runtimes/$PLATFORM/native/libssh2.dylib"
55+
cp src/libssh2*.dylib "$OUTPUT_DIR/libssh2.dylib"

0 commit comments

Comments
 (0)