Skip to content

Commit 35f8862

Browse files
Brooooooklynpull[bot]
authored andcommitted
ci: remove nx-cloud (#9203)
1 parent 50dd9ee commit 35f8862

21 files changed

Lines changed: 40 additions & 895 deletions

File tree

.github/actions/build-rust/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ inputs:
77
package:
88
description: 'Package to build'
99
required: true
10-
nx_token:
11-
description: 'Nx Cloud access token'
12-
required: false
1310

1411
runs:
1512
using: 'composite'
@@ -49,7 +46,6 @@ runs:
4946
- name: Build
5047
shell: bash
5148
run: |
52-
yarn workspace ${{ inputs.package }} nx build ${{ inputs.package }} --verbose -- --target ${{ inputs.target }} --use-napi-cross
49+
yarn workspace ${{ inputs.package }} build --target ${{ inputs.target }} --use-napi-cross
5350
env:
54-
NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}
5551
DEBUG: 'napi:*'

.github/workflows/build-images.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
type: string
88
required: true
99

10-
env:
11-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
12-
1310
permissions:
1411
contents: 'write'
1512
id-token: 'write'
@@ -50,7 +47,7 @@ jobs:
5047
- name: Setup Node.js
5148
uses: ./.github/actions/setup-node
5249
- name: Build Core
53-
run: yarn nx build @affine/web --skip-nx-cache
50+
run: yarn workspace @affine/web build
5451
env:
5552
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
5653
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
@@ -83,7 +80,7 @@ jobs:
8380
- name: Setup Node.js
8481
uses: ./.github/actions/setup-node
8582
- name: Build Admin
86-
run: yarn nx build @affine/admin --skip-nx-cache
83+
run: yarn workspace @affine/admin build
8784
env:
8885
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
8986
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
@@ -115,7 +112,7 @@ jobs:
115112
- name: Setup Node.js
116113
uses: ./.github/actions/setup-node
117114
- name: Build Mobile
118-
run: yarn nx build @affine/mobile --skip-nx-cache
115+
run: yarn workspace @affine/mobile build
119116
env:
120117
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
121118
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
@@ -163,7 +160,6 @@ jobs:
163160
with:
164161
target: ${{ matrix.targets.name }}
165162
package: '@affine/server-native'
166-
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
167163
- name: Upload ${{ matrix.targets.file }}
168164
uses: actions/upload-artifact@v4
169165
with:

.github/workflows/build-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ env:
1919
AFFINE_ENV: dev
2020
COVERAGE: true
2121
MACOSX_DEPLOYMENT_TARGET: '10.13'
22-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
2322
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/node_modules/.cache/ms-playwright
2423
DEPLOYMENT_TYPE: affine
2524

@@ -195,7 +194,7 @@ jobs:
195194
path: ./packages/frontend/native
196195

197196
- name: Unit Test
198-
run: yarn nx test:coverage @affine/monorepo
197+
run: yarn test:coverage
199198

200199
- name: Upload unit test coverage results
201200
uses: codecov/codecov-action@v5
@@ -238,7 +237,6 @@ jobs:
238237
with:
239238
target: ${{ matrix.spec.target }}
240239
package: '@affine/native'
241-
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
242240
- name: Upload ${{ steps.filename.outputs.filename }}
243241
uses: actions/upload-artifact@v4
244242
with:
@@ -263,7 +261,6 @@ jobs:
263261
with:
264262
target: 'x86_64-unknown-linux-gnu'
265263
package: '@affine/server-native'
266-
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
267264
- name: Upload server-native.node
268265
uses: actions/upload-artifact@v4
269266
with:

.github/workflows/copilot-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
workflow_dispatch:
55

66
env:
7-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
87
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/node_modules/.cache/ms-playwright
98

109
jobs:
@@ -25,7 +24,6 @@ jobs:
2524
with:
2625
target: 'x86_64-unknown-linux-gnu'
2726
package: '@affine/server-native'
28-
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
2927
- name: Upload server-native.node
3028
uses: actions/upload-artifact@v4
3129
with:

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
- beta
1313
- stable
1414
- internal
15-
env:
16-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1715

1816
permissions:
1917
contents: 'write'

.github/workflows/release-desktop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
6161
SENTRY_RELEASE: ${{ steps.version.outputs.APP_VERSION }}
6262
RELEASE_VERSION: ${{ steps.version.outputs.APP_VERSION }}
63-
SKIP_NX_CACHE: 'true'
6463
MIXPANEL_TOKEN: ${{ secrets.MIXPANEL_TOKEN }}
6564

6665
- name: Upload web artifact
@@ -117,7 +116,6 @@ jobs:
117116
with:
118117
target: ${{ matrix.spec.target }}
119118
package: '@affine/native'
120-
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
121119
- uses: actions/download-artifact@v4
122120
with:
123121
name: web
@@ -233,7 +231,6 @@ jobs:
233231
with:
234232
target: ${{ matrix.spec.target }}
235233
package: '@affine/native'
236-
nx_token: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
237234
- uses: actions/download-artifact@v4
238235
with:
239236
name: web

.github/workflows/release-mobile.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Setup @sentry/cli
6969
uses: ./.github/actions/setup-sentry
7070
- name: Build Mobile
71-
run: yarn nx build @affine/ios --skip-nx-cache
71+
run: yarn workspace @affine/ios build
7272
env:
7373
PUBLIC_PATH: '/'
7474
MIXPANEL_TOKEN: ${{ secrets.MIXPANEL_TOKEN }}
@@ -78,7 +78,6 @@ jobs:
7878
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
7979
SENTRY_RELEASE: ${{ steps.version.outputs.APP_VERSION }}
8080
RELEASE_VERSION: ${{ steps.version.outputs.APP_VERSION }}
81-
SKIP_NX_CACHE: 'true'
8281
- name: Upload ios artifact
8382
uses: actions/upload-artifact@v4
8483
with:
@@ -102,7 +101,7 @@ jobs:
102101
- name: Setup @sentry/cli
103102
uses: ./.github/actions/setup-sentry
104103
- name: Build Mobile
105-
run: yarn nx build @affine/android --skip-nx-cache
104+
run: yarn workspace @affine/android build
106105
env:
107106
PUBLIC_PATH: '/'
108107
MIXPANEL_TOKEN: ${{ secrets.MIXPANEL_TOKEN }}
@@ -112,7 +111,6 @@ jobs:
112111
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
113112
SENTRY_RELEASE: ${{ steps.version.outputs.APP_VERSION }}
114113
RELEASE_VERSION: ${{ steps.version.outputs.APP_VERSION }}
115-
SKIP_NX_CACHE: 'true'
116114
- name: Upload android artifact
117115
uses: actions/upload-artifact@v4
118116
with:

docs/building-desktop-client-app.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,16 @@ Please refer to `Build Native Dependencies` section in [BUILDING.md](./BUILDING.
4646
On Mac & Linux
4747

4848
```shell
49-
BUILD_TYPE=canary SKIP_NX_CACHE=1 yarn workspace @affine/electron generate-assets
49+
BUILD_TYPE=canary yarn workspace @affine/electron generate-assets
5050
```
5151

5252
On Windows (powershell)
5353

5454
```powershell
5555
$env:BUILD_TYPE="canary"
56-
$env:SKIP_NX_CACHE=1
5756
$env:DISTRIBUTION=desktop
5857
$env:SKIP_WEB_BUILD=1
59-
yarn build --skip-nx-cache
58+
yarn build
6059
```
6160

6261
### 2. Re-config yarn, clean up the node_modules and reinstall the dependencies

nx.json

Lines changed: 0 additions & 100 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"dev": "yarn workspace @affine/cli dev",
2121
"build": "yarn workspace @affine/cli bundle",
2222
"dev:electron": "yarn workspace @affine/electron dev",
23-
"build:electron": "yarn nx build @affine/electron",
24-
"build:server-native": "yarn nx run-many -t build -p @affine/server-native",
23+
"build:electron": "yarn workspace @affine/electron build",
24+
"build:server-native": "yarn workspace @affine/server-native build",
2525
"start:web-static": "yarn workspace @affine/web static-server",
2626
"lint:eslint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint --report-unused-disable-directives-severity=off . --cache",
2727
"lint:eslint:fix": "yarn lint:eslint --fix",
@@ -83,8 +83,6 @@
8383
"husky": "^9.1.7",
8484
"lint-staged": "^15.2.11",
8585
"msw": "^2.6.8",
86-
"nx": "^20.2.2",
87-
"nx-cloud": "^19.1.0",
8886
"oxlint": "0.15.0",
8987
"prettier": "^3.4.2",
9088
"semver": "^7.6.3",

0 commit comments

Comments
 (0)