Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build-v8-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ jobs:
EOF
gclient sync --delete_unversioned_trees --no-history

- name: install Rust cross-compilation target (darwin/amd64)
if: matrix.target_os == 'darwin' && matrix.target_arch == 'amd64'
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --target x86_64-apple-darwin
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: generate build args
run: |
mkdir -p deps/.build/${{ matrix.target_os }}_${{ matrix.target_arch }}
Expand All @@ -113,6 +119,12 @@ jobs:
USE_CUSTOM_LIBCXX="true"
fi

EXTRA_GN_ARGS=""
if [[ "${{ matrix.target_os }}" == "darwin" && "${{ matrix.target_arch }}" == "amd64" ]]; then
RUST_SYSROOT="$($HOME/.cargo/bin/rustc --print sysroot)"
EXTRA_GN_ARGS="rust_sysroot_absolute=\"${RUST_SYSROOT}\""
fi

cat > /tmp/gn_args.txt << EOF
is_debug=false
is_clang=${IS_CLANG}
Expand All @@ -138,6 +150,7 @@ jobs:
v8_enable_sandbox=false
exclude_unwind_tables=true
v8_android_log_stdout=true
${EXTRA_GN_ARGS}
EOF

- name: install sysroot (linux/arm64 cross-compile)
Expand Down
Loading