ci: install locked sharp arm64 runtime
Memind CI / Test, build, and release guards (push) Successful in 3m9s

This commit is contained in:
john
2026-07-16 21:37:28 +08:00
parent e0d4868908
commit 30fcbaf613
+8 -1
View File
@@ -38,7 +38,14 @@ jobs:
rm -rf /var/lib/apt/lists/*
- name: Install locked dependencies
run: npm ci
run: |
npm ci --include=optional
SHARP_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-linux-arm64'].version")"
LIBVIPS_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-libvips-linux-arm64'].version")"
npm install --no-save --package-lock=false \
"@img/sharp-linux-arm64@${SHARP_ARM64_VERSION}" \
"@img/sharp-libvips-linux-arm64@${LIBVIPS_ARM64_VERSION}"
node -e "import('sharp').then((sharp) => sharp.default({ create: { width: 1, height: 1, channels: 4, background: '#000' } }).png().toBuffer())"
- name: Check patch formatting
run: git diff --check HEAD^