@@ -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
0 commit comments