Skip to content

Commit d75fe5e

Browse files
authored
chore(ci): set rustup profile to minimal so we do not download docs (#1814)
# What does this PR do? Using the minimal rustup profile means we don't have to download `rust-docs`, which is ~600mb and unnecessary. likely to have a minimal impact on CI run time, but is good hygiene nonetheless. # Motivation What inspired you to submit this pull request? # Additional Notes Anything else we should know when reviewing? # How to test the change? Describe here in detail how the change can be validated. Co-authored-by: edmund.kump <edmund.kump@datadoghq.com>
1 parent f20ea2e commit d75fe5e

7 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/actions/clippy-annotation-reporter/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
steps:
2626
- name: Set up Rust
2727
shell: bash
28-
run: rustup install stable && rustup default stable
28+
run: rustup set profile minimal && rustup install stable && rustup default stable
2929

3030
- name: Fetch all branches
3131
shell: bash

.github/workflows/clippy-annotation-reporter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
fetch-depth: 0 # Full history
3030
- name: Install Rust
31-
run: rustup install stable
31+
run: rustup set profile minimal && rustup install stable
3232
- name: Run annotation reporter
3333
uses: ./.github/actions/clippy-annotation-reporter
3434
with:

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
submodules: recursive
3131
- name: Install Rust
32-
run: rustup install nightly-2026-02-08 && rustup default nightly-2026-02-08
32+
run: rustup set profile minimal && rustup install nightly-2026-02-08 && rustup default nightly-2026-02-08
3333
- name: Install cargo-llvm-cov
3434
uses: taiki-e/install-action@2c41309d51ede152b6f2ee6bf3b71e6dc9a8b7df # 2.49.27
3535
with:

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
submodules: recursive
2929
- name: Install nightly-2026-02-08 toolchain and rustfmt
30-
run: rustup install nightly-2026-02-08 && rustup default nightly-2026-02-08 && rustup component add rustfmt
30+
run: rustup set profile minimal && rustup install nightly-2026-02-08 && rustup default nightly-2026-02-08 && rustup component add rustfmt
3131
- name: Cache [rust]
3232
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
3333
with:
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
submodules: recursive
5050
- name: Install ${{ matrix.rust_version }} toolchain and clippy
51-
run: rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }} && rustup component add clippy
51+
run: rustup set profile minimal && rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }} && rustup component add clippy
5252
- name: Cache [rust]
5353
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
5454
with:

.github/workflows/pr-title-semver-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ jobs:
9191

9292
- name: Install Rust ${{ env.RUST_VERSION }}
9393
run: |
94+
rustup set profile minimal
9495
rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }}
95-
rustup toolchain install nightly-2026-02-08 --profile minimal
96+
rustup toolchain install nightly-2026-02-08
9697
# Link the dated nightly as 'nightly' for tools (like cargo-public-api) that expect it
9798
ln -sf ~/.rustup/toolchains/nightly-2026-02-08-x86_64-unknown-linux-gnu ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu
9899

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
submodules: recursive
4141
- name: Install Rust ${{ matrix.rust_version }}
4242
if: matrix.rust_version != ''
43-
run: rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }}
43+
run: rustup set profile minimal && rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }}
4444
- id: rust-version
4545
# On Windows run happens in a PowerShell, so start bash explicitly
4646
run: bash -c 'echo "version=$(rustc --version)" >> $GITHUB_OUTPUT'
@@ -195,7 +195,7 @@ jobs:
195195
swap-storage: true
196196
- name: Install Rust ${{ matrix.rust_version }}
197197
if: matrix.rust_version != ''
198-
run: rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }}
198+
run: rustup set profile minimal && rustup install ${{ matrix.rust_version }} && rustup default ${{ matrix.rust_version }}
199199

200200
- id: rust-version
201201
# On Windows run happens in a PowerShell, so start bash explicitly

.github/workflows/verify-proto-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: |
4747
../../../.github/workflows/diff-proto-files.sh --file idx/span.proto --tag ${{ env.DATADOG_AGENT_TAG }}
4848
- name: Install ${{ env.rust_version }} toolchain
49-
run: rustup install ${{ env.rust_version }} && rustup default ${{ env.rust_version }}
49+
run: rustup set profile minimal && rustup install ${{ env.rust_version }} && rustup default ${{ env.rust_version }}
5050
- name: Cache [rust]
5151
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
5252
with:

0 commit comments

Comments
 (0)