File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build - Win - Arm64
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ # push:
6
+ # tags:
7
+ # - v*
8
+
9
+ env :
10
+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
11
+
12
+ jobs :
13
+ build-windows-arm64 :
14
+ runs-on : windows-2022
15
+ strategy :
16
+ matrix :
17
+ node-version : [18]
18
+
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : Use Node.js ${{ matrix.node-version }}
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+
27
+ - name : Set Up MSVC for ARM64 Cross Compilation
28
+ uses : ilammy/msvc-dev-cmd@v1
29
+ with :
30
+ arch : amd64_arm64 # Sets up cross-compilation from x64 to ARM64
31
+
32
+ - name : Install vcpkg
33
+ run : |
34
+ git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
35
+ cd C:\vcpkg
36
+ .\bootstrap-vcpkg.bat
37
+ shell : cmd
38
+
39
+ - name : Install OpenSSL (Static) for Windows ARM64
40
+ run : |
41
+ C:\vcpkg\vcpkg install openssl:arm64-windows-static
42
+ shell : cmd
43
+
44
+ - name : Build
45
+ run : |
46
+ npm install --ignore-scripts
47
+ node_modules/.bin/prebuild -r napi --backend cmake-js --arch arm64 --upload -u ${{ secrets.GITHUB_TOKEN }} -- --CDCMAKE_TOOLCHAIN_FILE=c:\vcpkg\scripts\buildsystems\vcpkg.cmake --CDVCPKG_TARGET_TRIPLET=arm64-windows-static
48
+
49
+ - name : Upload
50
+ run : node_modules/.bin/prebuild -r napi --upload -u ${{ secrets.GITHUB_TOKEN }}
51
+ env :
52
+ CI : true
You can’t perform that action at this time.
0 commit comments