Skip to content

Commit fa82d17

Browse files
murat-doganMurat Dogan
andauthored
Binary for Windows ARM64 (#376)
* vcpkg bootstrap * param order * fix typo * seperate cmake and prebuild * prebuild * add shell * test * 18 * openssl --------- Co-authored-by: Murat Dogan <[email protected]>
1 parent 2ef152d commit fa82d17

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build-win-arm64-test.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,28 @@ jobs:
2929
with:
3030
arch: amd64_arm64 # Sets up cross-compilation from x64 to ARM64
3131

32-
- name: Install vcpkg
32+
- name: Setup vcpkg
3333
run: |
34-
git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
35-
cd C:\vcpkg
36-
.\bootstrap-vcpkg.bat
34+
C:\vcpkg\bootstrap-vcpkg.bat
3735
shell: cmd
3836

3937
- name: Install OpenSSL (Static) for Windows ARM64
4038
run: |
4139
C:\vcpkg\vcpkg install openssl:arm64-windows-static
4240
shell: cmd
4341

44-
- name: Build
42+
- name: NPM Install
4543
run: |
4644
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
45+
shell: cmd
46+
47+
- name: Build
48+
run: |
49+
npx prebuild -r napi --arch arm64 --backend cmake-js -- --CDCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" --CDVCPKG_TARGET_TRIPLET=arm64-windows-static
50+
shell: cmd
4851

4952
- name: Upload
50-
run: node_modules/.bin/prebuild -r napi --upload -u ${{ secrets.GITHUB_TOKEN }}
53+
run: npx prebuild --backend cmake-js --arch arm64 -r napi --upload -u ${{ secrets.GITHUB_TOKEN }}
5154
env:
5255
CI: true
56+
shell: cmd

0 commit comments

Comments
 (0)