From 8df219b3f48837f82e9ef0115360aac2f6896b3f Mon Sep 17 00:00:00 2001 From: Joshua Behrens Date: Sat, 26 Oct 2024 17:02:04 +0200 Subject: [PATCH] Ensure to use right architecture on built-target --- .github/workflows/build-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 8f49a0b..874ed26 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -51,6 +51,7 @@ jobs: # Store extra tools somewhere undisturbing cd "$(mktemp -d)" + ARCH=$(uname -m) fetch v8 cd v8 @@ -59,17 +60,17 @@ jobs: # Setup GN # 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 - ninja -C out.gn/x64.release/ + ninja -C out.gn/${ARCH}.release/ if [[ "${{ runner.os }}" == "macOS" ]]; then LIB_EXT=dylib else LIB_EXT=so 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/ # Go back to origin