Skip to content

Commit ad2fe80

Browse files
committed
Build citool outside source code
To avoid tidy errors.
1 parent f1c154b commit ad2fe80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ jobs:
177177
run: src/ci/scripts/verify-stable-version-number.sh
178178

179179
# Pre-build citool before the following step uninstalls rustup
180+
# Build is into the build directory, to avoid modifying sources
180181
- name: build citool
181182
run: |
182183
cd src/ci/citool
183-
cargo build
184+
CARGO_TARGET_DIR=../../../build/citool cargo build
184185
185186
- name: run the build
186187
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
@@ -223,7 +224,7 @@ jobs:
223224
env:
224225
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
225226
DD_GITHUB_JOB_NAME: ${{ matrix.full_name }}
226-
run: ./src/ci/citool/target/debug/citool upload-build-metrics build/cpu-usage.csv
227+
run: ./build/citool/debug/citool upload-build-metrics build/cpu-usage.csv
227228

228229
# This job isused to tell bors the final status of the build, as there is no practical way to detect
229230
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).

0 commit comments

Comments
 (0)