@@ -92,12 +92,12 @@ jobs:
9292 mkdir -p ~/.pkg-cache/v3.5
9393
9494 # Download pre-built ARMv7 binary from yao-pkg/pkg-binaries
95- # Using node 20.19.5 (latest available ARMv7 build, ~47MB )
96- curl -L -o ~/.pkg-cache/v3.5/fetched-v20.19.5-linux -armv7 \
97- https://github.com/yao-pkg/pkg-binaries/releases/download/node20/node-v20.19.5-linux -armv7
95+ # Using node 20.18.0 linuxstatic build (highest Node 20 recognized by pkg )
96+ curl -L -o ~/.pkg-cache/v3.5/fetched-v20.18.0-linuxstatic -armv7 \
97+ https://github.com/yao-pkg/pkg-binaries/releases/download/node20/node-v20.18.0-linuxstatic -armv7
9898
9999 # Make executable
100- chmod +x ~/.pkg-cache/v3.5/fetched-v20.19.5-linux -armv7
100+ chmod +x ~/.pkg-cache/v3.5/fetched-v20.18.0-linuxstatic -armv7
101101
102102 # Verify download (should be ~47MB)
103103 ls -lh ~/.pkg-cache/v3.5/
@@ -127,9 +127,9 @@ jobs:
127127 elif [[ "${{ matrix.platform }}" == "mac" ]]; then
128128 npx @yao-pkg/pkg . --targets node20-macos-${{ matrix.arch }} --output dist/${{ matrix.output }}
129129 elif [[ "${{ matrix.platform }}" == "linux" ]]; then
130- # Special case: ARMv7 requires explicit version (20.19.5 from pkg-binaries)
130+ # Special case: ARMv7 needs the linuxstatic target to pick the supported Node 20 build
131131 if [[ "${{ matrix.arch }}" == "armv7" ]]; then
132- npx @yao-pkg/pkg . --targets node20.19.5-linux -armv7 --output dist/${{ matrix.output }}
132+ npx @yao-pkg/pkg . --targets node20-linuxstatic -armv7 --output dist/${{ matrix.output }}
133133 else
134134 npx @yao-pkg/pkg . --targets node20-linux-${{ matrix.arch }} --output dist/${{ matrix.output }}
135135 fi
0 commit comments