ci: disable postinstall on macOS build (#4885)

This commit is contained in:
LongYinan 2023-11-09 19:58:55 +08:00 committed by GitHub
parent af72bf0f69
commit 839f500979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 4 deletions

View File

@ -19,6 +19,8 @@ runs:
with:
toolchain: stable
targets: ${{ inputs.target }}
env:
CARGO_INCREMENTAL: '1'
- name: Cache cargo
uses: actions/cache@v3

View File

@ -32,6 +32,10 @@ inputs:
nmHoistingLimits:
description: 'Set nmHoistingLimits in .yarnrc.yml'
required: false
enableScripts:
description: 'Set enableScripts in .yarnrc.yml'
required: false
default: 'true'
runs:
using: 'composite'
@ -54,6 +58,11 @@ runs:
shell: bash
run: yarn config set nmHoistingLimits ${{ inputs.nmHoistingLimits }}
- name: Set enableScripts
if: ${{ inputs.enableScripts == 'false' }}
shell: bash
run: yarn config set enableScripts false
- name: yarn install
if: ${{ inputs.package-install == 'true' }}
continue-on-error: true

View File

@ -118,6 +118,7 @@ jobs:
extra-flags: workspaces focus @affine/electron @affine/monorepo @affine-test/affine-desktop
playwright-install: true
hard-link-nm: false
enableScripts: false
- name: Build AFFiNE native
uses: ./.github/actions/build-rust

View File

@ -80,11 +80,11 @@ jobs:
# For windows, we need a separate approach
matrix:
spec:
- runner: macos-latest-xlarge
- runner: macos-latest
platform: darwin
arch: x64
target: x86_64-apple-darwin
- runner: macos-latest-xlarge
- runner: macos-latest
platform: darwin
arch: arm64
target: aarch64-apple-darwin
@ -109,6 +109,7 @@ jobs:
hard-link-nm: false
build-plugins: false
nmHoistingLimits: workspaces
enableScripts: false
- name: Build AFFiNE native
uses: ./.github/actions/build-rust
with:

View File

@ -25990,8 +25990,8 @@ __metadata:
linkType: hard
"macos-alias@npm:macos-alias-building@latest":
version: 0.2.13
resolution: "macos-alias-building@npm:0.2.13"
version: 0.2.14
resolution: "macos-alias-building@npm:0.2.14"
conditions: os=darwin
languageName: node
linkType: hard