mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
ci: use nx on rust build (#2811)
This commit is contained in:
7
.github/actions/build-rust/action.yml
vendored
7
.github/actions/build-rust/action.yml
vendored
@@ -28,7 +28,7 @@ runs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
if: ${{ inputs.target != 'x86_64-unknown-linux-gnu' && inputs.target != 'aarch64-unknown-linux-gnu' }}
|
if: ${{ inputs.target != 'x86_64-unknown-linux-gnu' && inputs.target != 'aarch64-unknown-linux-gnu' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: yarn workspace @affine/native build --target ${{ inputs.target }}
|
run: yarn nx build @affine/native --target ${{ inputs.target }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
|
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
@@ -39,7 +39,8 @@ runs:
|
|||||||
run: >-
|
run: >-
|
||||||
export CC=x86_64-unknown-linux-gnu-gcc &&
|
export CC=x86_64-unknown-linux-gnu-gcc &&
|
||||||
export CC_x86_64_unknown_linux_gnu=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
|
- name: Build
|
||||||
if: ${{ inputs.target == 'aarch64-unknown-linux-gnu' }}
|
if: ${{ inputs.target == 'aarch64-unknown-linux-gnu' }}
|
||||||
@@ -48,4 +49,4 @@ runs:
|
|||||||
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
|
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
|
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: >-
|
run: >-
|
||||||
yarn workspace @affine/native build --target ${{ inputs.target }}
|
yarn nx build @affine/native --target ${{ inputs.target }}
|
||||||
|
|||||||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -10,6 +10,8 @@ on:
|
|||||||
- README.md
|
- README.md
|
||||||
- .github/**
|
- .github/**
|
||||||
- '!.github/workflows/build.yml'
|
- '!.github/workflows/build.yml'
|
||||||
|
- '!.github/actions/build-rust/action.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -19,6 +21,8 @@ on:
|
|||||||
- README.md
|
- README.md
|
||||||
- .github/**
|
- .github/**
|
||||||
- '!.github/workflows/build.yml'
|
- '!.github/workflows/build.yml'
|
||||||
|
- '!.github/actions/build-rust/action.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEBUG: napi:*
|
DEBUG: napi:*
|
||||||
|
|||||||
2
.github/workflows/languages-sync.yml
vendored
2
.github/workflows/languages-sync.yml
vendored
@@ -6,11 +6,13 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'packages/i18n/**'
|
- 'packages/i18n/**'
|
||||||
- '.github/workflows/languages-sync.yml'
|
- '.github/workflows/languages-sync.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches: ['master']
|
branches: ['master']
|
||||||
paths:
|
paths:
|
||||||
- 'packages/i18n/**'
|
- 'packages/i18n/**'
|
||||||
- '.github/workflows/languages-sync.yml'
|
- '.github/workflows/languages-sync.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
1
.github/workflows/nightly-build.yml
vendored
1
.github/workflows/nightly-build.yml
vendored
@@ -11,6 +11,7 @@ on:
|
|||||||
- README.md
|
- README.md
|
||||||
- .github/**
|
- .github/**
|
||||||
- '!.github/workflows/nightly-build.yml'
|
- '!.github/workflows/nightly-build.yml'
|
||||||
|
- '!.github/actions/setup-node/action.yml'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
|
|||||||
Reference in New Issue
Block a user