Skip to content

Commit 7627555

Browse files
committed
Fix building macos
1 parent 4e7aabc commit 7627555

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-test.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ jobs:
6161
6262
# Install to /opt/v8/self-built
6363
sudo mkdir -p /opt/v8/self-built/{lib,include}
64-
sudo cp out.gn/x64.release/lib*.so out.gn/x64.release/*_blob.bin out.gn/x64.release/icudtl.dat /opt/v8/self-built/lib/
64+
65+
if [[ "${{ runner.os }}" == "macos-latest" ]]; then
66+
LIB_EXT=dylib
67+
else
68+
LIB_EXT=so
69+
fi
70+
sudo cp out.gn/x64.release/lib*.${LIB_EXT} out.gn/x64.release/*_blob.bin out.gn/x64.release/icudtl.dat /opt/v8/self-built/lib/
6571
sudo cp -R include/* /opt/v8/self-built/include/
6672
6773
# Go back to origin

0 commit comments

Comments
 (0)