Skip to content

Commit 8426e58

Browse files
authored
1.2.2
* chore: update actions/upload-artifact for deprecated version * fix: update corepack * fix: ci * fix: optimize ci * fix: ci * fix: ci * fix: ci
1 parent 353a43d commit 8426e58

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
name: linux-x64-gnu
6565
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
6666
build: |-
67+
npm install -g corepack@latest &&
68+
corepack enable &&
69+
pnpm --version &&
6770
set -e &&
6871
cd crates/node_binding &&
6972
unset CC_x86_64_unknown_linux_gnu && unset CC &&
@@ -79,6 +82,9 @@ jobs:
7982
name: linux-arm64-gnu
8083
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
8184
build: |-
85+
npm install -g corepack@latest &&
86+
corepack enable &&
87+
pnpm --version &&
8288
set -e &&
8389
cd crates/node_binding &&
8490
export JEMALLOC_SYS_WITH_LG_PAGE=16 && export CC_aarch64_unknown_linux_gnu=clang &&
@@ -141,7 +147,7 @@ jobs:
141147
if: ${{ !matrix.settings.docker }}
142148
shell: bash
143149
- name: Upload artifact
144-
uses: actions/upload-artifact@v3
150+
uses: actions/upload-artifact@v4
145151
with:
146152
name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node
147153
path: crates/node_binding/${{ env.APP_NAME }}.*.node
@@ -156,19 +162,19 @@ jobs:
156162
- name: Pnpm Cache # Required by some tests
157163
uses: ./.github/actions/pnpm-cache
158164
- name: Download macOS x64 artifact
159-
uses: actions/download-artifact@v3
165+
uses: actions/download-artifact@v4
160166
with:
161167
name: ${{ env.APP_NAME }}.darwin-x64.node
162168
path: crates/node_binding/artifacts
163169
- name: Download macOS arm64 artifact
164-
uses: actions/download-artifact@v3
170+
uses: actions/download-artifact@v4
165171
with:
166172
name: ${{ env.APP_NAME }}.darwin-arm64.node
167173
path: crates/node_binding/artifacts
168174
- name: Combine binaries
169175
run: cd crates/node_binding && pnpm universal
170176
- name: Upload artifact
171-
uses: actions/upload-artifact@v3
177+
uses: actions/upload-artifact@v4
172178
with:
173179
name: ${{ env.APP_NAME }}.darwin-universal.node
174180
path: crates/node_binding/${{ env.APP_NAME }}.*.node
@@ -183,7 +189,7 @@ jobs:
183189
- name: Pnpm Cache # Required by some tests
184190
uses: ./.github/actions/pnpm-cache
185191
- name: Download all artifacts
186-
uses: actions/download-artifact@v3
192+
uses: actions/download-artifact@v4
187193
with:
188194
path: crates/node_binding/artifacts
189195
- name: Move artifacts

0 commit comments

Comments
 (0)