Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xusd320 committed Feb 6, 2025
1 parent 3524214 commit e429e0d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/node-bind-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: node-bind-build
env:
DEBUG: napi:*
APP_NAME: mako
MACOSX_DEPLOYMENT_TARGET: '10.13'
MACOSX_DEPLOYMENT_TARGET: "10.13"
on:
workflow_dispatch:
push:
branches:
- master
tags-ignore:
- '**'
- "**"
paths-ignore:
- '**/*.md'
- "**/*.md"
- LICENSE
- '**/*.gitignore'
- "**/*.gitignore"
- .editorconfig
- docs/**
pull_request:
types: [ opened, synchronize ]
types: [opened, synchronize]
jobs:
build:
strategy:
Expand All @@ -41,6 +41,8 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
set -e &&
npm install -g corepack@latest &&
corepack enable &&
pnpm --filter @umijs/mako napi:build --target x86_64-unknown-linux-gnu &&
strip ./packages/mako/*.node
- host: ubuntu-latest
Expand All @@ -57,6 +59,8 @@ jobs:
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
rustup target add aarch64-unknown-linux-gnu &&
npm install -g corepack@latest &&
corepack enable &&
pnpm --filter @umijs/mako napi:build --target aarch64-unknown-linux-gnu
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
Expand Down Expand Up @@ -128,7 +132,7 @@ jobs:
if: ${{ matrix.settings.docker }}
with:
image: ${{ matrix.settings.docker }}
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'
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"
run: ${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
Expand Down

0 comments on commit e429e0d

Please sign in to comment.