-
-
Notifications
You must be signed in to change notification settings - Fork 64
65 lines (55 loc) · 1.79 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
57
58
59
60
61
62
63
64
65
name: Build - Win - Arm64
on:
workflow_dispatch:
# push:
# tags:
# - v*
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
jobs:
build-windows:
runs-on: windows-2022
strategy:
matrix:
node-version: [18]
arch: [arm64] # x64, x86, arm64
include:
# - arch: x64
# vcpkg_triplet: x64-windows-static
# msvc_arch: amd64
# - arch: x86
# vcpkg_triplet: x86-windows-static
# msvc_arch: amd64_x86
- arch: arm64
vcpkg_triplet: arm64-windows-static
msvc_arch: amd64_arm64
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 Cross Compilation
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.msvc_arch }}
- name: Install vcpkg
run: |
git submodule update --init --recursive vcpkg
.\vcpkg\bootstrap-vcpkg.bat
shell: cmd
- name: setup vcpkg
run: |
.\vcpkg\vcpkg install --triplet ${{ matrix.vcpkg_triplet }}
shell: cmd
- name: Install npm dependencies
run: |
npm install --ignore-scripts
- name: Build for ${{ matrix.arch }}
run: |
node_modules/.bin/prebuild -r napi --upload -u ${{ secrets.GITHUB_TOKEN }} --backend cmake-js
env:
OPENSSL_ROOT_DIR: ${{ github.workspace }}\vcpkg_installed\${{ matrix.vcpkg_triplet }}
OPENSSL_LIBRARIES: ${{ github.workspace }}\vcpkg_installed\${{ matrix.vcpkg_triplet }}\lib
OPENSSL_INCLUDE_DIR: ${{ github.workspace }}\vcpkg_installed\${{ matrix.vcpkg_triplet }}\include
CI: true