Skip to content

Commit

Permalink
fix(IDX): enable colors in clippy (#3628)
Browse files Browse the repository at this point in the history
This sets

[`CARGO_TERM_COLOR`](https://doc.rust-lang.org/cargo/reference/config.html#termcolor)
to "always" so that the output from clippy has nice colors.

---------

Co-authored-by: IDX GitHub Automation <idx@dfinity.org>
  • Loading branch information
nmattia and sa-idx-admin authored Jan 27, 2025
1 parent 59c71ed commit 048d528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows-source/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ jobs:
BUILDEVENT_APIKEY: ${{ secrets. HONEYCOMB_API_TOKEN }}
run: |
set -eExuo pipefail
export CARGO_TERM_COLOR=always # ensure output has colors
buildevents cmd "$CI_RUN_ID" "$CI_JOB_NAME" build-command -- \
"$CI_PROJECT_DIR"/ci/scripts/rust-lint.sh
Expand Down Expand Up @@ -411,5 +412,6 @@ jobs:
BUILDEVENT_APIKEY: ${{ secrets. HONEYCOMB_API_TOKEN }}
run: |
set -eExuo pipefail
export CARGO_TERM_COLOR=always # ensure output has colors
buildevents cmd "$CI_RUN_ID" "$CI_JOB_NAME" build-command -- \
cargo build --release --locked
2 changes: 2 additions & 0 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ jobs:
BUILDEVENT_APIKEY: ${{ secrets. HONEYCOMB_API_TOKEN }}
run: |
set -eExuo pipefail
export CARGO_TERM_COLOR=always # ensure output has colors
buildevents cmd "$CI_RUN_ID" "$CI_JOB_NAME" build-command -- \
"$CI_PROJECT_DIR"/ci/scripts/rust-lint.sh
cargo-build-release-linux:
Expand Down Expand Up @@ -424,5 +425,6 @@ jobs:
BUILDEVENT_APIKEY: ${{ secrets. HONEYCOMB_API_TOKEN }}
run: |
set -eExuo pipefail
export CARGO_TERM_COLOR=always # ensure output has colors
buildevents cmd "$CI_RUN_ID" "$CI_JOB_NAME" build-command -- \
cargo build --release --locked

0 comments on commit 048d528

Please sign in to comment.