diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a94483a33..3a07b6f82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,6 +110,22 @@ jobs: nodejs_version: "^22.9.0" nodejs_version_major: 22 platform: win32-x64 + - os: windows-11-arm + nodejs_arch: arm64 + nodejs_version: "^18.17.0" + nodejs_version_major: 18 + platform: win32-arm64 + prebuild: true + - os: windows-11-arm + nodejs_arch: arm64 + nodejs_version: "^20.3.0" + nodejs_version_major: 20 + platform: win32-arm64 + - os: windows-11-arm + nodejs_arch: arm64 + nodejs_version: "^22.9.0" + nodejs_version_major: 22 + platform: win32-arm64 steps: - name: Dependencies (Rocky Linux glibc) if: contains(matrix.container, 'rockylinux') diff --git a/docs/src/content/docs/install.md b/docs/src/content/docs/install.md index 0ca0290b1..3e0a4a014 100644 --- a/docs/src/content/docs/install.md +++ b/docs/src/content/docs/install.md @@ -53,6 +53,7 @@ Ready-compiled sharp and libvips binaries are provided for use on the most commo * Linux x64 (glibc >= 2.26, musl >= 1.2.2, CPU with SSE4.2) * Windows x64 * Windows x86 +* Windows ARM64 This provides support for the JPEG, PNG, WebP, AVIF (limited to 8-bit depth), TIFF, GIF and SVG (input) image formats. diff --git a/npm/win32-arm64/package.json b/npm/win32-arm64/package.json new file mode 100644 index 000000000..541c3615e --- /dev/null +++ b/npm/win32-arm64/package.json @@ -0,0 +1,39 @@ +{ + "name": "@img/sharp-win32-arm64", + "version": "0.34.1", + "description": "Prebuilt sharp for use with Windows arm64", + "author": "Lovell Fuller ", + "homepage": "https://sharp.pixelplumbing.com", + "repository": { + "type": "git", + "url": "git+https://github.com/lovell/sharp.git", + "directory": "npm/win32-arm64" + }, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "funding": { + "url": "https://opencollective.com/libvips" + }, + "preferUnplugged": true, + "files": [ + "lib", + "versions.json" + ], + "publishConfig": { + "access": "public" + }, + "type": "commonjs", + "exports": { + "./sharp.node": "./lib/sharp-win32-arm64.node", + "./package": "./package.json", + "./versions": "./versions.json" + }, + "engines": { + "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + }, + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ] +} diff --git a/package.json b/package.json index 6970f9ec1..05105ba90 100644 --- a/package.json +++ b/package.json @@ -161,7 +161,8 @@ "@img/sharp-linuxmusl-x64": "0.34.1", "@img/sharp-wasm32": "0.34.1", "@img/sharp-win32-ia32": "0.34.1", - "@img/sharp-win32-x64": "0.34.1" + "@img/sharp-win32-x64": "0.34.1", + "@img/sharp-win32-arm64": "0.34.1" }, "devDependencies": { "@emnapi/runtime": "^1.4.0",