Skip to content

Commit 2d366ef

Browse files
committed
Add Node build artifact to build-deps.yml
1 parent cd78c1a commit 2d366ef

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/build-deps.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,28 @@ jobs:
133133

134134
steps:
135135

136+
- name: Add 7-Zip to PATH
137+
uses: myci-actions/append-to-path-windows@2
138+
with:
139+
path: C:\Program Files\7-Zip
140+
141+
- name: Check 7-Zip installed
142+
run: |
143+
7z
144+
136145
- name: Build Node.js arm64
137146
run: |
138147
Set-PSDebug -Trace 1
139148
git clone https://github.com/Windows-on-ARM-Experiments/node.git --single-branch -b fix-arm64-compilation --depth 1
140149
cd node
141-
.\vcbuild openssl-no-asm arm64
150+
.\vcbuild.bat arm64 package
151+
152+
- name: Archive node-arm64.zip
153+
uses: actions/upload-artifact@v3
154+
with:
155+
name: node-arm64.zip
156+
path: node/out/Release/node-v20.0.0-win-arm64.zip
157+
retention-days: 1
142158

143159
emscripten_build:
144160
if: ${{ inputs.emscripten_build }} || ${{ inputs.emsdk_build }}
@@ -178,13 +194,20 @@ jobs:
178194
- uses: actions/download-artifact@v3
179195
with:
180196
name: llvm-arm64.zip
197+
198+
- uses: actions/download-artifact@v3
199+
with:
200+
name: node-arm64.zip
181201

182202
- name: Build emsdk arm64
183203
run: |
184204
ls
185205
New-Item -ItemType Directory -Force -Path emsdk/emscripten
186206
Expand-Archive -LiteralPath emscripten_package.zip -DestinationPath emsdk\emscripten
187207
Expand-Archive -LiteralPath llvm-arm64.zip -DestinationPath emsdk
208+
Expand-Archive -LiteralPath node-arm64.zip -DestinationPath emsdk\node
209+
mv emsdk\node\node-v20.0.0-win-arm64\* emsdk\node
210+
rmdir emsdk\node\node-v20.0.0-win-arm64
188211
cd emsdk
189212
Compress-Archive -Path * -DestinationPath emsdk-arm64
190213

0 commit comments

Comments
 (0)