Skip to content

Commit cea2e0f

Browse files
committed
set NX_FORCE_REUSE_CACHED_GRAPH=false
1 parent ed64f12 commit cea2e0f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/actions/build/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ runs:
6262
java-early-access: ${{ inputs.java-early-access }}
6363
java-toolchain: ${{ inputs.java-toolchain }}
6464
java-version: ${{ inputs.java-version }}
65-
- name: nx show project spring-boot-loader
65+
- name: remove project graph
6666
shell: bash
67-
run: npx nx show project spring-boot-loader --json --verbose
67+
run: rm -f .nx/workspace-data/project-graph.json
6868
- name: Build
6969
id: build
7070
if: ${{ inputs.publish == 'false' }}
@@ -74,7 +74,7 @@ runs:
7474
COMMERCIAL_REPO_PASSWORD: ${{ inputs.commercial-repository-password }}
7575
COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
7676
COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
77-
run: CI=true NX_BATCH_MODE=true NX_CLOUD_DEREFERENCE_SYMLINKS=true NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CLOUD_NO_TIMEOUTS=true NX_CLOUD_VERBOSE_LOGGING=true npx nx run-many -t=build-ci --parallel=32 --batch --outputStyle=stream
77+
run: NX_FORCE_REUSE_CACHED_GRAPH=false CI=true NX_BATCH_MODE=true NX_CLOUD_DEREFERENCE_SYMLINKS=true NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CLOUD_NO_TIMEOUTS=true NX_CLOUD_VERBOSE_LOGGING=true npx nx run-many -t=build-ci --parallel=32 --batch --outputStyle=stream
7878
# - name: Publish
7979
# id: publish
8080
# if: ${{ inputs.publish == 'true' }}

.github/workflows/build-pull-request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ jobs:
2121
- run: npm install
2222

2323
- run: npx nx reset
24+
- run: rm -f .nx/workspace-data/project-graph.json
2425
- run: npx nx show project spring-boot-loader --json --verbose
2526

2627
# This enables task distribution via Nx Cloud
2728
# Run this command as early as possible, before dependencies are installed
2829
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
2930
# Uncomment this line to enable task distribution
30-
- run: NX_CLOUD_FORCE_USE_EXECUTE_TASKS_V3=false NX_CLOUD_DEREFERENCE_SYMLINKS=true NX_CLOUD_RETRIEVAL_CONCURRENCY=50 NX_CLOUD_NO_TIMEOUTS=true NX_VERBOSE_LOGGING=true NX_CLOUD_VERBOSE_LOGGING=true NX_PERF_LOGGING=true npx nx-cloud start-ci-run --require-explicit-completion --distribute-on="../../.nx/workflows/distribution-config.yaml"
31+
- run: NX_FORCE_REUSE_CACHED_GRAPH=false NX_CLOUD_FORCE_USE_EXECUTE_TASKS_V3=false NX_CLOUD_DEREFERENCE_SYMLINKS=true NX_CLOUD_RETRIEVAL_CONCURRENCY=50 NX_CLOUD_NO_TIMEOUTS=true NX_VERBOSE_LOGGING=true NX_CLOUD_VERBOSE_LOGGING=true NX_PERF_LOGGING=true npx nx-cloud start-ci-run --require-explicit-completion --distribute-on="../../.nx/workflows/distribution-config.yaml"
3132

33+
- run: rm -f .nx/workspace-data/project-graph.json
34+
3235
- name: Build
3336
id: build
3437
uses: ./.github/actions/build

.nx/workflows/agents.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ launch-templates:
4646
script: npx nx show projects
4747

4848
- name: show project spring-boot-buildpack-platform
49-
script: npx nx show project spring-boot-buildpack-platform --json
49+
script: npx nx show project spring-boot-buildpack-platform --json=false
5050

5151
- name: show project spring-boot-loader
52-
script: npx nx show project spring-boot-loader --json
52+
script: npx nx show project spring-boot-loader --json=false

0 commit comments

Comments
 (0)