From b3b2dbccf95259859b657757aaf2cae793e41497 Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Wed, 5 Mar 2025 18:26:24 +0800 Subject: [PATCH 1/4] support window arm64 --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++--- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++---- 2 files changed, 48 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc83872..36c4547 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,12 +81,33 @@ jobs: npm-publish: false github-release: false - windows-builds: - name: Builds (Windows) + windows-x64-builds: + name: Builds (Windows x64) + strategy: + fail-fast: false + matrix: + target: [x86_64-pc-windows-msvc] + runs-on: windows-latest + permissions: + contents: write + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Build + uses: neon-actions/build@v0.1 + with: + target: ${{ matrix.target }} + node-version: ${{ env.NODE_VERSION }} + rust-version: ${{ env.RUST_VERSION }} + npm-publish: false + github-release: false + + windows-arm64-builds: + name: Builds (Windows ARM64) strategy: fail-fast: false matrix: - target: [x86_64-pc-windows-msvc] + target: [aarch64-pc-windows-msvc] runs-on: windows-latest permissions: contents: write diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0a0aef7..fd71c20 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -60,11 +60,31 @@ jobs: npm-publish: false github-release: true - windows-builds: - name: Builds (Windows) + windows-x64-builds: + name: Builds (Windows x64) + strategy: + matrix: + target: [x86_64-pc-windows-msvc] + runs-on: windows-latest + permissions: + contents: write + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Build + uses: neon-actions/build@v0.1 + with: + target: ${{ matrix.target }} + node-version: ${{ env.NODE_VERSION }} + rust-version: ${{ env.RUST_VERSION }} + npm-publish: false + github-release: true + + windows-arm64-builds: + name: Builds (Windows ARM64) strategy: matrix: - target: [x86_64-pc-windows-msvc] + target: [aarch64-pc-windows-msvc] runs-on: windows-latest permissions: contents: write @@ -79,7 +99,7 @@ jobs: rust-version: ${{ env.RUST_VERSION }} npm-publish: false github-release: true - + other-builds: name: Builds (other platforms) strategy: From 52917f12e66796eadfe7562641e8688270900b0c Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Wed, 5 Mar 2025 18:28:21 +0800 Subject: [PATCH 2/4] update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2ca949d..a785df1 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "aarch64-apple-darwin": "@libsql/darwin-arm64", "aarch64-unknown-linux-gnu": "@libsql/linux-arm64-gnu", "aarch64-unknown-linux-musl": "@libsql/linux-arm64-musl", + "aarch64-windows-msvc": "@libsql/win32-arm64-msvc", "x86_64-apple-darwin": "@libsql/darwin-x64", "x86_64-pc-windows-msvc": "@libsql/win32-x64-msvc", "x86_64-unknown-linux-gnu": "@libsql/linux-x64-gnu", From d290287bb08883bee06a87e02b9105a6f91cb276 Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Wed, 5 Mar 2025 18:33:50 +0800 Subject: [PATCH 3/4] update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a785df1..8da191f 100644 --- a/package.json +++ b/package.json @@ -45,9 +45,9 @@ "neon": { "targets": { "aarch64-apple-darwin": "@libsql/darwin-arm64", + "aarch64-windows-msvc": "@libsql/win32-arm64-msvc", "aarch64-unknown-linux-gnu": "@libsql/linux-arm64-gnu", "aarch64-unknown-linux-musl": "@libsql/linux-arm64-musl", - "aarch64-windows-msvc": "@libsql/win32-arm64-msvc", "x86_64-apple-darwin": "@libsql/darwin-x64", "x86_64-pc-windows-msvc": "@libsql/win32-x64-msvc", "x86_64-unknown-linux-gnu": "@libsql/linux-x64-gnu", From 938e7d1b0cd105a4c822102641425b17b9cc4597 Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Wed, 5 Mar 2025 18:35:33 +0800 Subject: [PATCH 4/4] fix yml format error --- .github/workflows/ci.yml | 40 +++++++++++++++++------------------ .github/workflows/publish.yml | 36 +++++++++++++++---------------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36c4547..8698536 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,26 +82,26 @@ jobs: github-release: false windows-x64-builds: - name: Builds (Windows x64) - strategy: - fail-fast: false - matrix: - target: [x86_64-pc-windows-msvc] - runs-on: windows-latest - permissions: - contents: write - steps: - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v2 - - name: Build - uses: neon-actions/build@v0.1 - with: - target: ${{ matrix.target }} - node-version: ${{ env.NODE_VERSION }} - rust-version: ${{ env.RUST_VERSION }} - npm-publish: false - github-release: false - + name: Builds (Windows x64) + strategy: + fail-fast: false + matrix: + target: [x86_64-pc-windows-msvc] + runs-on: windows-latest + permissions: + contents: write + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Build + uses: neon-actions/build@v0.1 + with: + target: ${{ matrix.target }} + node-version: ${{ env.NODE_VERSION }} + rust-version: ${{ env.RUST_VERSION }} + npm-publish: false + github-release: false + windows-arm64-builds: name: Builds (Windows ARM64) strategy: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fd71c20..2975f30 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -61,24 +61,24 @@ jobs: github-release: true windows-x64-builds: - name: Builds (Windows x64) - strategy: - matrix: - target: [x86_64-pc-windows-msvc] - runs-on: windows-latest - permissions: - contents: write - steps: - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v2 - - name: Build - uses: neon-actions/build@v0.1 - with: - target: ${{ matrix.target }} - node-version: ${{ env.NODE_VERSION }} - rust-version: ${{ env.RUST_VERSION }} - npm-publish: false - github-release: true + name: Builds (Windows x64) + strategy: + matrix: + target: [x86_64-pc-windows-msvc] + runs-on: windows-latest + permissions: + contents: write + steps: + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Build + uses: neon-actions/build@v0.1 + with: + target: ${{ matrix.target }} + node-version: ${{ env.NODE_VERSION }} + rust-version: ${{ env.RUST_VERSION }} + npm-publish: false + github-release: true windows-arm64-builds: name: Builds (Windows ARM64)