0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 23:51:51 +00:00

Ensure to use right architecture on built-target

This commit is contained in:
Joshua Behrens 2024-10-26 17:02:04 +02:00
parent 573858f73e
commit 8df219b3f4
No known key found for this signature in database
GPG Key ID: DD28BD85EE8F67DD

View File

@ -51,6 +51,7 @@ jobs:
# Store extra tools somewhere undisturbing # Store extra tools somewhere undisturbing
cd "$(mktemp -d)" cd "$(mktemp -d)"
ARCH=$(uname -m)
fetch v8 fetch v8
cd v8 cd v8
@ -59,17 +60,17 @@ jobs:
# Setup GN # Setup GN
# Warnings are no errors - @see https://issues.chromium.org/issues/42203398#comment9 # Warnings are no errors - @see https://issues.chromium.org/issues/42203398#comment9
tools/dev/v8gen.py -vv x64.release -- is_component_build=true use_custom_libcxx=false treat_warnings_as_errors=false tools/dev/v8gen.py -vv ${ARCH}.release -- is_component_build=true use_custom_libcxx=false treat_warnings_as_errors=false
# Build # Build
ninja -C out.gn/x64.release/ ninja -C out.gn/${ARCH}.release/
if [[ "${{ runner.os }}" == "macOS" ]]; then if [[ "${{ runner.os }}" == "macOS" ]]; then
LIB_EXT=dylib LIB_EXT=dylib
else else
LIB_EXT=so LIB_EXT=so
fi fi
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/ cp out.gn/${ARCH}.release/lib*.${LIB_EXT} out.gn/${ARCH}.release/*_blob.bin out.gn/${ARCH}.release/icudtl.dat /opt/v8/self-built/lib/
cp -R include/* /opt/v8/self-built/include/ cp -R include/* /opt/v8/self-built/include/
# Go back to origin # Go back to origin