mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore: update nx cloud read only token (#2821)
This commit is contained in:
9
.github/actions/build-rust/action.yml
vendored
9
.github/actions/build-rust/action.yml
vendored
@@ -4,6 +4,9 @@ inputs:
|
|||||||
target:
|
target:
|
||||||
description: 'Cargo target'
|
description: 'Cargo target'
|
||||||
required: true
|
required: true
|
||||||
|
nx_token:
|
||||||
|
description: 'Nx Cloud access token'
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
@@ -29,13 +32,15 @@ runs:
|
|||||||
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 nx build @affine/native --target ${{ inputs.target }}
|
run: yarn nx build @affine/native --target ${{ inputs.target }}
|
||||||
|
env:
|
||||||
|
NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
|
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
|
||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
|
image: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
|
||||||
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 -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}
|
||||||
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 &&
|
||||||
@@ -47,6 +52,6 @@ runs:
|
|||||||
uses: addnab/docker-run-action@v3
|
uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
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 -e NX_CLOUD_ACCESS_TOKEN=${{ inputs.nx_token }}
|
||||||
run: >-
|
run: >-
|
||||||
yarn nx build @affine/native --target ${{ inputs.target }}
|
yarn nx build @affine/native --target ${{ inputs.target }}
|
||||||
|
|||||||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -57,6 +57,8 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
- run: yarn nx build @affine/storybook
|
- run: yarn nx build @affine/storybook
|
||||||
|
env:
|
||||||
|
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||||
- name: Upload storybook artifact
|
- name: Upload storybook artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -107,6 +109,7 @@ jobs:
|
|||||||
ENABLE_ALL_PAGE_FILTER: true
|
ENABLE_ALL_PAGE_FILTER: true
|
||||||
ENABLE_LEGACY_PROVIDER: false
|
ENABLE_LEGACY_PROVIDER: false
|
||||||
ENABLE_PRELOADING: false
|
ENABLE_PRELOADING: false
|
||||||
|
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Export static resources
|
- name: Export static resources
|
||||||
run: yarn workspace @affine/web export
|
run: yarn workspace @affine/web export
|
||||||
@@ -305,6 +308,7 @@ jobs:
|
|||||||
uses: ./.github/actions/build-rust
|
uses: ./.github/actions/build-rust
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.spec.target }}
|
target: ${{ matrix.spec.target }}
|
||||||
|
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
if: ${{ matrix.spec.test }}
|
if: ${{ matrix.spec.test }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
1
.github/workflows/nightly-build.yml
vendored
1
.github/workflows/nightly-build.yml
vendored
@@ -117,6 +117,7 @@ jobs:
|
|||||||
uses: ./.github/actions/build-rust
|
uses: ./.github/actions/build-rust
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.spec.target }}
|
target: ${{ matrix.spec.target }}
|
||||||
|
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||||
- name: Replace Version
|
- name: Replace Version
|
||||||
run: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}
|
run: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
|||||||
1
.github/workflows/release-desktop-app.yml
vendored
1
.github/workflows/release-desktop-app.yml
vendored
@@ -111,6 +111,7 @@ jobs:
|
|||||||
uses: ./.github/actions/build-rust
|
uses: ./.github/actions/build-rust
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.spec.target }}
|
target: ${{ matrix.spec.target }}
|
||||||
|
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: before-make-web-static
|
name: before-make-web-static
|
||||||
|
|||||||
2
nx.json
2
nx.json
@@ -6,7 +6,7 @@
|
|||||||
"runner": "nx-cloud",
|
"runner": "nx-cloud",
|
||||||
"options": {
|
"options": {
|
||||||
"cacheableOperations": ["build", "test"],
|
"cacheableOperations": ["build", "test"],
|
||||||
"accessToken": "MjNlN2ViZmMtNDM4NS00MDViLWE0NjUtNGFhNmIyMTc1ZDVhfHJlYWQtd3JpdGU="
|
"accessToken": "YmQ2NTg1ODktZTk5Mi00YzhiLTk2ZmUtNWQzMDg0NDBkOWM3fHJlYWQtb25seQ=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user