Skip to content

Commit fdc16de

Browse files
committed
env
1 parent 2e99c53 commit fdc16de

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

+8-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
submodules: true
2421

2522
- name: Use Node.js ${{ matrix.node-version }}
2623
uses: actions/setup-node@v4
@@ -34,6 +31,7 @@ jobs:
3431

3532
- name: install vcpkg
3633
run: |
34+
git submodule update --init --recursive
3735
.\vcpkg\bootstrap-vcpkg.bat
3836
shell: cmd
3937

@@ -48,9 +46,15 @@ jobs:
4846
4947
- name: Build
5048
run: |
51-
node_modules/.bin/prebuild -r napi --arch arm64 --backend cmake-js -- --CDCMAKE_TOOLCHAIN_FILE:FILEPATH=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake --CDVCPKG_TARGET_TRIPLET:STRING=arm64-windows-static
49+
node_modules/.bin/prebuild -r napi --arch arm64 --backend cmake-js
5250
env:
51+
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
52+
VCPKG_TARGET_TRIPLET: arm64-windows-static
53+
OPENSSL_ROOT_DIR: ${{ github.workspace }}/vcpkg/installed/arm64-windows-static
54+
OPENSSL_LIBRARIES: ${{ github.workspace }}/vcpkg/installed/arm64-windows-static/lib
55+
OPENSSL_INCLUDE_DIR: ${{ github.workspace }}/vcpkg/installed/arm64-windows-static/include
5356
CI: true
57+
5458
- name: Upload
5559
run: node_modules/.bin/prebuild -r napi --upload -u ${{ secrets.GITHUB_TOKEN }}
5660
env:

0 commit comments

Comments
 (0)