-
-
Notifications
You must be signed in to change notification settings - Fork 64
56 lines (46 loc) · 1.58 KB
/
build-win-arm64-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build - Win - Arm64
on:
workflow_dispatch:
# push:
# tags:
# - v*
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
build-windows-arm64:
runs-on: windows-2022
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set Up MSVC for ARM64 Cross Compilation
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_arm64 # Sets up cross-compilation from x64 to ARM64
- name: install vcpkg
run: |
git submodule update --init --recursive vcpkg
.\vcpkg\bootstrap-vcpkg.bat
shell: cmd
# - name: Setup vcpkg
# run: |
# .\vcpkg\vcpkg install --triplet arm64-windows-static
# shell: cmd
- name: Install npm
run: |
npm install --ignore-scripts
- name: Build
run: |
node_modules/.bin/prebuild -r napi --backend cmake-js --arch arm64 --upload -u ${{ secrets.GITHUB_TOKEN }}
env:
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
VCPKG_TARGET_TRIPLET: arm64-windows-static
# OPENSSL_ROOT_DIR: ${{ github.workspace }}/vcpkg/installed/arm64-windows-static
# OPENSSL_LIBRARIES: ${{ github.workspace }}/vcpkg/installed/arm64-windows-static/lib
# OPENSSL_INCLUDE_DIR: ${{ github.workspace }}/vcpkg/installed/arm64-windows-static/include
CI: true