Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/cmake_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: 'recursive'
- name: Free Disk Space
run: ./ci/free_disk_space.sh
- name: Install Conan
run: |
python3 -m pip install pip==25.0.1
Expand Down Expand Up @@ -235,6 +237,8 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: 'recursive'
- name: Free Disk Space
run: ./ci/free_disk_space.sh
- name: Install Conan
run: |
python3 -m pip install pip==25.0.1
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ Increment the:
* [CONFIGURATION] File configuration - console metric exporter
[#3734](https://github.com/open-telemetry/opentelemetry-cpp/pull/3734)

* [CI] Free disk space
[#3749](https://github.com/open-telemetry/opentelemetry-cpp/pull/3749)

New Features:

* [CONFIGURATION] Implement declarative configuration (config.yaml)
Expand Down
38 changes: 38 additions & 0 deletions ci/free_disk_space.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

# Work around for:
# https://github.com/actions/runner-images/issues/13189

# Adapted from:
# https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh

echo "=============================================================================="
echo "Freeing up disk space on CI system"
echo "=============================================================================="

# BEFORE:
# Size: 72G
# Used: 53G
# Available: 19G

df -h
echo "Removing large directories"

sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/local/graalvm/
sudo rm -rf /usr/local/.ghcup/
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/share/chromium
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/node_modules

# AFTER:
# Size: 72G
# Used: 29G
# Available: 44G

df -h

Loading