Skip to content

Commit 813c15d

Browse files
committed
move start ci in build
1 parent a945566 commit 813c15d

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/actions/build/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ runs:
5959
java-early-access: ${{ inputs.java-early-access }}
6060
java-toolchain: ${{ inputs.java-toolchain }}
6161
java-version: ${{ inputs.java-version }}
62+
63+
- run: npx nx show projects
64+
65+
# This enables task distribution via Nx Cloud
66+
# Run this command as early as possible, before dependencies are installed
67+
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
68+
# Uncomment this line to enable task distribution
69+
- 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"
70+
6271
- name: Build
6372
id: build
6473
if: ${{ inputs.publish == 'false' }}
@@ -79,6 +88,10 @@ runs:
7988
# COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
8089
# COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
8190
# run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
91+
92+
- name: Stop nx cloud agents
93+
if: always()
94+
run: npx nx-cloud complete-ci-run
8295
- name: Read Version From gradle.properties
8396
id: read-version
8497
shell: bash

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,10 @@ jobs:
1717
cache: npm
1818
- run: npm install
1919

20-
- run: npx nx show projects
21-
22-
# This enables task distribution via Nx Cloud
23-
# Run this command as early as possible, before dependencies are installed
24-
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
25-
# Uncomment this line to enable task distribution
26-
- 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"
27-
2820
- name: Build
2921
id: build
3022
uses: ./.github/actions/build
31-
- name: Stop nx cloud agents
32-
if: always()
33-
run: npx nx-cloud complete-ci-run
23+
3424
- name: Print JVM Thread Dumps When Cancelled
3525
if: cancelled()
3626
uses: ./.github/actions/print-jvm-thread-dumps

0 commit comments

Comments
 (0)