Skip to content

Commit 58e16a1

Browse files
committed
chore: enhance CI workflows by ensuring LLVM linker availability
- Added checks in npm release workflows to ensure the LLVM linker (`ld64.lld`) is installed, improving build reliability. - Updated both `npm_napi_release.yml` and `npm_release.yml` workflows to include the new linker verification step.
1 parent e8fd957 commit 58e16a1

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/npm_napi_release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
run: |
4141
npm install
4242
python3 -m pip install --upgrade pip six
43+
# Ensure LLVM linker used by -fuse-ld=lld is available
44+
if ! command -v ld64.lld >/dev/null; then
45+
brew list lld || brew install lld
46+
fi
4347
# Ensure CMake is available without conflicting with pinned Homebrew formula
4448
if ! command -v cmake >/dev/null; then
4549
brew list cmake || brew install cmake
@@ -101,6 +105,10 @@ jobs:
101105
run: |
102106
npm install
103107
python3 -m pip install --upgrade pip six
108+
# Ensure LLVM linker used by -fuse-ld=lld is available
109+
if ! command -v ld64.lld >/dev/null; then
110+
brew list lld || brew install lld
111+
fi
104112
# Ensure CMake is available without conflicting with pinned Homebrew formula
105113
if ! command -v cmake >/dev/null; then
106114
brew list cmake || brew install cmake

.github/workflows/npm_release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
run: |
4141
npm install
4242
python3 -m pip install --upgrade pip six
43+
# Ensure LLVM linker used by -fuse-ld=lld is available
44+
if ! command -v ld64.lld >/dev/null; then
45+
brew list lld || brew install lld
46+
fi
4347
# Ensure CMake is available without conflicting with pinned Homebrew formula
4448
if ! command -v cmake >/dev/null; then
4549
brew list cmake || brew install cmake
@@ -101,6 +105,10 @@ jobs:
101105
run: |
102106
npm install
103107
python3 -m pip install --upgrade pip six
108+
# Ensure LLVM linker used by -fuse-ld=lld is available
109+
if ! command -v ld64.lld >/dev/null; then
110+
brew list lld || brew install lld
111+
fi
104112
# Ensure CMake is available without conflicting with pinned Homebrew formula
105113
if ! command -v cmake >/dev/null; then
106114
brew list cmake || brew install cmake

0 commit comments

Comments
 (0)