Skip to content

Commit ff5707b

Browse files
authored
fix(CI): Update llvm when building native musl targets (#81392)
Tested locally with ``` podman run --platform=linux/amd64 -t -i ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2023-09-17-alpine bash ``` We must ensure llvm16 is removed before installing llvm20 and llvm20-dev, as there's a file conflict between llvm16 and llvm20-dev. Full build-and-deploy run: [https://github.com/vercel/next.js/actions/runs/16128142342](https://github.com/vercel/next.js/actions/runs/16128189670)
1 parent cacd2e4 commit ff5707b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ jobs:
247247
build: >-
248248
set -ex &&
249249
apk update &&
250-
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm-dev &&
250+
apk del llvm &&
251+
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm llvm-dev &&
251252
rustup show &&
252253
rustup target add x86_64-unknown-linux-musl &&
253254
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" &&
@@ -288,7 +289,8 @@ jobs:
288289
build: >-
289290
set -ex &&
290291
apk update &&
291-
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm-dev &&
292+
apk del llvm &&
293+
apk add --no-cache libc6-compat pkgconfig dav1d libdav1d dav1d-dev clang-static llvm llvm-dev &&
292294
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
293295
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" &&
294296
rustup show &&

0 commit comments

Comments
 (0)