From f29c76be4f5048f3fb89115e98a27d3e2f7507ec Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Wed, 24 Apr 2024 13:44:43 -0400 Subject: [PATCH] fix(repo): update publish script so we install deps in docker containers --- .github/workflows/publish.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aadf698458811f..ca32c8fc521b28 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,7 @@ on: env: DEBUG: napi:* NX_RUN_GROUP: ${{ github.run_id }}-${{ github.run_attempt }} + CYPRESS_INSTALL_BINARY: 0 jobs: build: @@ -36,11 +37,17 @@ jobs: build: |- set -e && pnpm --version && - pnpm nx run-many --target=build-native -- --target=x86_64-unknown-linux-gnu + pnpm install --frozen-lockfile && + pnpm nx --version && + pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-gnu - host: ubuntu-latest target: x86_64-unknown-linux-musl docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine - build: set -e && pnpm nx run-many --target=build-native -- --target=x86_64-unknown-linux-musl + build: |- + set -e && + pnpm install --frozen-lockfile && + pnpm nx --version && + pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-musl - host: macos-13 target: aarch64-apple-darwin build: | @@ -56,7 +63,9 @@ jobs: build: |- set -e && pnpm --version && - pnpm nx run-many --target=build-native -- --target=aarch64-unknown-linux-gnu + pnpm install --frozen-lockfile && + pnpm nx --version && + pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-gnu - host: ubuntu-latest target: armv7-unknown-linux-gnueabihf setup: | @@ -79,7 +88,9 @@ jobs: build: |- set -e && rustup target add aarch64-unknown-linux-musl && - pnpm nx run-many --target=build-native -- --target=aarch64-unknown-linux-musl + pnpm install --frozen-lockfile && + pnpm nx --version && + pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-musl - host: windows-latest target: aarch64-pc-windows-msvc build: pnpm nx run-many --target=build-native -- --target=aarch64-pc-windows-msvc @@ -129,6 +140,7 @@ jobs: run: yarn config set supportedArchitectures.cpu "ia32" shell: bash - name: Install dependencies + if: ${{ !matrix.settings.docker }} run: pnpm install --frozen-lockfile timeout-minutes: 30 - name: Setup node x86