Skip to content

Commit 0d94663

Browse files
committed
Reduce disk usage for CI actions
Signed-off-by: Andrew Stein <[email protected]>
1 parent d1f70e0 commit 0d94663

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/actions/install-deps/action.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ runs:
4646
using: "composite"
4747
steps:
4848
- name: Clean System
49-
uses: AdityaGarg8/remove-unwanted-software@v4.1
49+
uses: AdityaGarg8/remove-unwanted-software@v5
5050
if: ${{ inputs.clean == 'true' && runner.os != 'Windows' }}
5151
with:
5252
remove-android: "true"
5353
remove-dotnet: "true"
5454
remove-haskell: "true"
5555
remove-codeql: "true"
56+
remove-docker-images: "true"
57+
remove-large-packages: "true"
58+
remove-cached-tools: "true"
5659

5760
# Sticking to 3.29 because of:
5861
# https://github.com/open-telemetry/opentelemetry-cpp/issues/2998
@@ -152,15 +155,15 @@ runs:
152155
with:
153156
toolchain: nightly-2025-02-01
154157
targets: aarch64-apple-darwin
155-
components: rustfmt, clippy, rust-src
158+
components: rust-src
156159

157160
- name: Install rust (aarch64 Linux)
158161
uses: dtolnay/rust-toolchain@nightly
159162
if: ${{ inputs.rust == 'true' && inputs.arch == 'aarch64' && runner.os == 'Linux' }}
160163
with:
161164
toolchain: nightly-2025-02-01
162165
targets: aarch64-unknown-linux-gnu
163-
components: rustfmt, clippy, rust-src
166+
components: rust-src
164167

165168
# # TODO doesn't work.
166169
# - name: Install LLVM 17
@@ -174,12 +177,12 @@ runs:
174177
- name: Install JS dependencies
175178
shell: bash
176179
if: ${{ inputs.javascript == 'true' && inputs.playwright == 'true' }}
177-
run: pnpm install
180+
run: pnpm install --no-optional
178181

179182
- name: Install JS dependencies
180183
shell: bash
181184
if: ${{ inputs.javascript == 'false' || inputs.playwright == 'false'}}
182-
run: pnpm install --ignore-scripts
185+
run: pnpm install --ignore-scripts --no-optional
183186

184187
- name: Template version
185188
shell: bash

0 commit comments

Comments
 (0)