Skip to content

Commit c383a97

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

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/build-deps.yml

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

134134
steps:
135135

136+
- name: Add 7-Zip to PATH
137+
run: setx PATH "%PATH%;C:\Program Files\7-Zip"
138+
139+
- name: Check 7-Zip installed
140+
run: |
141+
7z
142+
136143
- name: Build Node.js arm64
137144
run: |
138145
Set-PSDebug -Trace 1
139146
git clone https://github.com/Windows-on-ARM-Experiments/node.git --single-branch -b fix-arm64-compilation --depth 1
140147
cd node
141-
.\vcbuild openssl-no-asm arm64
148+
.\vcbuild.bat arm64 package
149+
150+
- name: Archive node-arm64.zip
151+
uses: actions/upload-artifact@v3
152+
with:
153+
name: node-arm64.zip
154+
path: node/out/Release/node-v20.0.0-win-arm64.zip
155+
retention-days: 1
142156

143157
emscripten_build:
144158
if: ${{ inputs.emscripten_build }} || ${{ inputs.emsdk_build }}
@@ -178,13 +192,20 @@ jobs:
178192
- uses: actions/download-artifact@v3
179193
with:
180194
name: llvm-arm64.zip
195+
196+
- uses: actions/download-artifact@v3
197+
with:
198+
name: node-arm64.zip
181199

182200
- name: Build emsdk arm64
183201
run: |
184202
ls
185203
New-Item -ItemType Directory -Force -Path emsdk/emscripten
186204
Expand-Archive -LiteralPath emscripten_package.zip -DestinationPath emsdk\emscripten
187205
Expand-Archive -LiteralPath llvm-arm64.zip -DestinationPath emsdk
206+
Expand-Archive -LiteralPath node-arm64.zip -DestinationPath emsdk\node
207+
mv emsdk\node\node-v20.0.0-win-arm64\* emsdk\node
208+
rmdir emsdk\node\node-v20.0.0-win-arm64
188209
cd emsdk
189210
Compress-Archive -Path * -DestinationPath emsdk-arm64
190211

0 commit comments

Comments
 (0)