Skip to content

Commit

Permalink
feat: add support for windows arm64 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 authored May 4, 2023
1 parent 5e40ea0 commit 55d1950
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
tag: ''
python_arch: 'x64'
npm_config_arch: 'x64'
node_version: '18.x'
ARCH: 'x64'
artifact_name: ''
prebuild_folder_name: ''
Expand All @@ -14,10 +15,10 @@ parameters:

steps:
- task: NodeTool@0
condition: eq('${{ parameters.installNode }}', 'true')
condition: eq('${{ parameters.install_node }}', 'true')
inputs:
versionSource: 'spec'
versionSpec: '18.x'
versionSpec: ${{ parameters.node_version }}

- task: UsePythonVersion@0
condition: eq('${{ parameters.yum_install_python }}', 'false')
Expand Down
14 changes: 14 additions & 0 deletions build/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ jobs:
output_node_file: 'node.napi.glibc.node'
test: false

- job: win32_arm64
pool:
vmImage: 'windows-latest'
steps:
- template: build.yml
parameters:
ARCH: arm64
npm_config_arch: arm64
node_version: '19.x'
artifact_name: 'win32-arm64'
prebuild_folder_name: 'win32-arm64'
output_node_file: 'node.napi.glibc.node'
test: false

- job: darwin_x64
pool:
vmImage: 'macOS-latest'
Expand Down
10 changes: 9 additions & 1 deletion build/patch.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ index 68a8f58..280b468 100644
}],

diff --git a/package.json b/package.json
index 058ecd1..12fcd8a 100644
index 058ecd1..cd2e3d9 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
Expand All @@ -23,6 +23,14 @@ index 058ecd1..12fcd8a 100644
"shelljs": "^0.8.5",
"shx": "^0.3.4"
},
@@ -35,7 +35,6 @@
"@types/which": "^2.0.1",
"benchmark": "^2.1.4",
"chai": "^4.3.7",
- "deasync": "^0.1.28",
"downlevel-dts": "^0.11.0",
"electron-mocha": "^11.0.2",
"eslint-config-atomic": "^1.18.1",
diff --git a/script/build.ts b/script/build.ts
index c055ebc..693d914 100644
--- a/script/build.ts
Expand Down

0 comments on commit 55d1950

Please sign in to comment.