Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- host: windows-latest
build: yarn build --target x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
- host: windows-latest
build: yarn build --target aarch64-pc-windows-msvc
target: aarch64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
Expand Down Expand Up @@ -101,6 +104,11 @@ jobs:
run: rustup target add ${{ matrix.settings.target }}
if: ${{ !matrix.settings.docker }}
shell: bash
- name: Setup MSVC for ARM64
uses: ilammy/msvc-dev-cmd@v1
if: matrix.settings.target == 'aarch64-pc-windows-msvc'
with:
arch: x64_arm64
- name: Setup node x86
if: matrix.settings.target == 'i686-pc-windows-msvc'
run: yarn config set supportedArchitectures.cpu "ia32"
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/windows-arm64-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Windows ARM64 Build
env:
DEBUG: napi:*
APP_NAME: libsql
permissions:
contents: read
'on':
workflow_dispatch: null
jobs:
build:
name: build - aarch64-pc-windows-msvc - node@20
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: aarch64-pc-windows-msvc
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo-cache
target/
key: aarch64-pc-windows-msvc-cargo-windows-latest
- name: Setup MSVC for ARM64
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64_arm64
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build --target aarch64-pc-windows-msvc
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bindings-aarch64-pc-windows-msvc
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
3 changes: 3 additions & 0 deletions npm/win32-arm64-msvc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `libsql-win32-arm64-msvc`

This is the **aarch64-pc-windows-msvc** binary for `libsql`
22 changes: 22 additions & 0 deletions npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "@libsql/win32-arm64-msvc",
"version": "0.6.0-pre.26",
"repository": {
"type": "git",
"url": "https://github.com/tursodatabase/libsql-js"
},
"os": [
"win32"
],
"cpu": [
"arm64"
],
"main": "libsql.win32-arm64-msvc.node",
"files": [
"libsql.win32-arm64-msvc.node"
],
"license": "MIT",
"engines": {
"node": ">= 10"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"x86_64-unknown-linux-musl"
]
}
Expand All @@ -74,4 +75,4 @@
"version": "napi version"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
1 change: 1 addition & 0 deletions scripts/update-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"npm/darwin-arm64",
"npm/linux-arm64-gnu",
"npm/win32-x64-msvc",
"npm/win32-arm64-msvc",
]


Expand Down
Loading