diff --git a/.github/actions/build-rust/action.yml b/.github/actions/build-rust/action.yml index a4de7d6f1f..f824c02af0 100644 --- a/.github/actions/build-rust/action.yml +++ b/.github/actions/build-rust/action.yml @@ -28,7 +28,7 @@ runs: - name: Build if: ${{ inputs.target != 'x86_64-unknown-linux-gnu' && inputs.target != 'aarch64-unknown-linux-gnu' }} shell: bash - run: yarn workspace @affine/native build --target ${{ inputs.target }} + run: yarn nx build @affine/native --target ${{ inputs.target }} - name: Build if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }} @@ -39,7 +39,8 @@ runs: run: >- export CC=x86_64-unknown-linux-gnu-gcc && export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc && - yarn workspace @affine/native build --target ${{ inputs.target }} + yarn nx build @affine/native --target ${{ inputs.target }} && + chmod -R 777 node_modules/.cache - name: Build if: ${{ inputs.target == 'aarch64-unknown-linux-gnu' }} @@ -48,4 +49,4 @@ runs: image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 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: >- - yarn workspace @affine/native build --target ${{ inputs.target }} + yarn nx build @affine/native --target ${{ inputs.target }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca5028b4e0..0d9c20d1f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ on: - README.md - .github/** - '!.github/workflows/build.yml' + - '!.github/actions/build-rust/action.yml' + - '!.github/actions/setup-node/action.yml' pull_request: branches: - master @@ -19,6 +21,8 @@ on: - README.md - .github/** - '!.github/workflows/build.yml' + - '!.github/actions/build-rust/action.yml' + - '!.github/actions/setup-node/action.yml' env: DEBUG: napi:* diff --git a/.github/workflows/languages-sync.yml b/.github/workflows/languages-sync.yml index 135778e3d8..9e4da019b0 100644 --- a/.github/workflows/languages-sync.yml +++ b/.github/workflows/languages-sync.yml @@ -6,11 +6,13 @@ on: paths: - 'packages/i18n/**' - '.github/workflows/languages-sync.yml' + - '!.github/actions/setup-node/action.yml' pull_request_target: branches: ['master'] paths: - 'packages/i18n/**' - '.github/workflows/languages-sync.yml' + - '!.github/actions/setup-node/action.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 6a5fcf5d42..e8f4cb9ea6 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -11,6 +11,7 @@ on: - README.md - .github/** - '!.github/workflows/nightly-build.yml' + - '!.github/actions/setup-node/action.yml' permissions: actions: write