From 61e1858241edc8d46cea7a9c61a0bb33a119e2c0 Mon Sep 17 00:00:00 2001 From: OJ Kwon <1210596+kwonoj@users.noreply.github.com> Date: Tue, 15 Aug 2023 15:26:25 -0700 Subject: [PATCH] chore(ci): small notes for the build steps (#54073) ### What? Leaving a small note to the build steps to avoid regressions like https://github.com/vercel/next.js/issues/54017 later. Closes WEB-1386 --------- Co-authored-by: Steven --- .github/workflows/build_and_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 369d403e27fb9..0a78f365b29f4 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -145,6 +145,13 @@ jobs: - 'metal' target: 'x86_64-unknown-linux-gnu' + # [NOTE] If you want to update / modify build steps, check these things: + # - We use docker images to pin the glibc version to link against, + # even if host target is identical to the container image (i.e host: x64-linux, image: x64-linux) + # - After build `objdump -T` prints out the glibc version next-swc is linked against, + # to ensure it did not change unexpectedly if docker image, or other dependency changed + # - zig linker with portable glibc is avoided as it has known issues with static tls + node.js + multi threaded + # environment. docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-x64 build: >- set -e &&