Skip to content

Commit 2dd0b37

Browse files
authored
fix: ci (#1768)
1 parent 8bdd985 commit 2dd0b37

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/node-bind-build.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ name: node-bind-build
22
env:
33
DEBUG: napi:*
44
APP_NAME: mako
5-
MACOSX_DEPLOYMENT_TARGET: '10.13'
5+
MACOSX_DEPLOYMENT_TARGET: "10.13"
66
on:
77
workflow_dispatch:
88
push:
99
branches:
1010
- master
1111
tags-ignore:
12-
- '**'
12+
- "**"
1313
paths-ignore:
14-
- '**/*.md'
14+
- "**/*.md"
1515
- LICENSE
16-
- '**/*.gitignore'
16+
- "**/*.gitignore"
1717
- .editorconfig
1818
- docs/**
1919
pull_request:
20-
types: [ opened, synchronize ]
20+
types: [opened, synchronize]
2121
jobs:
2222
build:
2323
strategy:
@@ -41,6 +41,8 @@ jobs:
4141
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
4242
build: |-
4343
set -e &&
44+
npm install -g corepack@latest &&
45+
corepack enable &&
4446
pnpm --filter @umijs/mako napi:build --target x86_64-unknown-linux-gnu &&
4547
strip ./packages/mako/*.node
4648
- host: ubuntu-latest
@@ -57,6 +59,8 @@ jobs:
5759
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
5860
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
5961
rustup target add aarch64-unknown-linux-gnu &&
62+
npm install -g corepack@latest &&
63+
corepack enable &&
6064
pnpm --filter @umijs/mako napi:build --target aarch64-unknown-linux-gnu
6165
- host: ubuntu-latest
6266
target: aarch64-unknown-linux-musl
@@ -128,7 +132,7 @@ jobs:
128132
if: ${{ matrix.settings.docker }}
129133
with:
130134
image: ${{ matrix.settings.docker }}
131-
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
135+
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build"
132136
run: ${{ matrix.settings.build }}
133137
- name: Build
134138
run: ${{ matrix.settings.build }}

0 commit comments

Comments
 (0)