Skip to content

Commit 36f3fbb

Browse files
committed
move start ci in build
1 parent a945566 commit 36f3fbb

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.github/actions/build/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ runs:
5959
java-early-access: ${{ inputs.java-early-access }}
6060
java-toolchain: ${{ inputs.java-toolchain }}
6161
java-version: ${{ inputs.java-version }}
62+
63+
- name: show projects
64+
shell: bash
65+
run: npx nx show projects
66+
67+
# This enables task distribution via Nx Cloud
68+
# Run this command as early as possible, before dependencies are installed
69+
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
70+
# Uncomment this line to enable task distribution
71+
- name: start ci run
72+
shell: bash
73+
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"
74+
6275
- name: Build
6376
id: build
6477
if: ${{ inputs.publish == 'false' }}
@@ -79,6 +92,11 @@ runs:
7992
# COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
8093
# COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
8194
# run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
95+
96+
- name: Stop nx cloud agents
97+
if: always()
98+
shell: bash
99+
run: npx nx-cloud complete-ci-run
82100
- name: Read Version From gradle.properties
83101
id: read-version
84102
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)