Skip to content

Commit 216813a

Browse files
committed
Revert "fix: ci error le16toh"
This reverts commit 584a609.
1 parent 128f793 commit 216813a

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ jobs:
315315
} else if ('${{ matrix.target }}' === 'x86_64-unknown-linux-gnu') {
316316
console.log('IMAGE=node:${{ matrix.node }}-bookworm')
317317
} else {
318-
console.log('IMAGE=node:${{ matrix.node }}-bullseye')
318+
console.log('IMAGE=node:${{ matrix.node }}-slim')
319319
}
320320
" >> $GITHUB_OUTPUT
321321
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
@@ -337,40 +337,7 @@ jobs:
337337
with:
338338
image: ${{ steps.docker.outputs.IMAGE }}
339339
options: -v ${{ steps.docker.outputs.PNPM_STORE_PATH }}:${{ steps.docker.outputs.PNPM_STORE_PATH }} -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}
340-
run: |
341-
if echo "${{ steps.docker.outputs.IMAGE }}" | grep -q alpine; then
342-
# Alpine Linux
343-
apk update && apk add --no-cache musl-dev build-base binutils
344-
echo "Checking for le16toh symbol in Alpine..."
345-
if command -v nm >/dev/null 2>&1; then
346-
nm -D /lib/libc.musl-x86_64.so.1 | grep le16toh || echo "le16toh not found in musl libc"
347-
echo "Checking for alternative byte order functions..."
348-
nm -D /lib/libc.musl-x86_64.so.1 | grep -E "(htole16|htons|ntohs)" || echo "No alternative functions found"
349-
else
350-
echo "nm command not available, skipping symbol check"
351-
fi
352-
else
353-
# Debian/Ubuntu
354-
apt-get update && apt-get install -y libc6-dev build-essential binutils curl
355-
echo "Checking for le16toh symbol..."
356-
if command -v nm >/dev/null 2>&1; then
357-
nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep le16toh || echo "le16toh not found in libc"
358-
echo "Checking for alternative byte order functions..."
359-
nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep -E "(htole16|htons|ntohs)" || echo "No alternative functions found"
360-
else
361-
echo "nm command not available, skipping symbol check"
362-
fi
363-
fi
364-
# 设置环境变量确保正确的链接
365-
export RUSTFLAGS="-C link-arg=-Wl,--allow-multiple-definition"
366-
# 确保 pnpm 可用
367-
if ! command -v pnpm >/dev/null 2>&1; then
368-
echo "Installing pnpm..."
369-
npm install -g pnpm
370-
fi
371-
# 安装依赖
372-
pnpm install --force
373-
npm run test
340+
run: npm run test
374341

375342
publish:
376343
name: Publish

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ tree-sitter = "0.25.10"
2222
tree-sitter-json = "0.24.8"
2323
url = "2.5.7"
2424
walkdir = "2"
25-
byteorder = "1.5.0"
26-
libc = "0.2"
2725

2826
[build-dependencies]
2927
napi-build = "2"

0 commit comments

Comments
 (0)