Skip to content
Merged
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
107 changes: 107 additions & 0 deletions .github/workflows/build-cloudberry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,33 @@ jobs:
options: >-
--user root
-h cdw
-v /usr/share:/host_usr_share
-v /usr/local:/host_usr_local
-v /opt:/host_opt

steps:
- name: Free Disk Space
if: needs.check-skip.outputs.should_skip != 'true'
run: |
echo "=== Disk space before cleanup ==="
df -h /

# Remove pre-installed tools from host to free disk space
rm -rf /host_opt/hostedtoolcache || true # GitHub Actions tool cache
rm -rf /host_usr_local/lib/android || true # Android SDK
rm -rf /host_usr_share/dotnet || true # .NET SDK
rm -rf /host_opt/ghc || true # Haskell GHC
rm -rf /host_usr_local/.ghcup || true # Haskell GHCup
rm -rf /host_usr_share/swift || true # Swift
rm -rf /host_usr_local/share/powershell || true # PowerShell
rm -rf /host_usr_local/share/chromium || true # Chromium
rm -rf /host_usr_share/miniconda || true # Miniconda
rm -rf /host_opt/az || true # Azure CLI
rm -rf /host_usr_share/sbt || true # Scala Build Tool

echo "=== Disk space after cleanup ==="
df -h /

- name: Skip Check
if: needs.check-skip.outputs.should_skip == 'true'
run: |
Expand Down Expand Up @@ -707,8 +732,33 @@ jobs:
options: >-
--user root
-h cdw
-v /usr/share:/host_usr_share
-v /usr/local:/host_usr_local
-v /opt:/host_opt

steps:
- name: Free Disk Space
if: needs.check-skip.outputs.should_skip != 'true'
run: |
echo "=== Disk space before cleanup ==="
df -h /

# Remove pre-installed tools from host to free disk space
rm -rf /host_opt/hostedtoolcache || true # GitHub Actions tool cache
rm -rf /host_usr_local/lib/android || true # Android SDK
rm -rf /host_usr_share/dotnet || true # .NET SDK
rm -rf /host_opt/ghc || true # Haskell GHC
rm -rf /host_usr_local/.ghcup || true # Haskell GHCup
rm -rf /host_usr_share/swift || true # Swift
rm -rf /host_usr_local/share/powershell || true # PowerShell
rm -rf /host_usr_local/share/chromium || true # Chromium
rm -rf /host_usr_share/miniconda || true # Miniconda
rm -rf /host_opt/az || true # Azure CLI
rm -rf /host_usr_share/sbt || true # Scala Build Tool

echo "=== Disk space after cleanup ==="
df -h /

- name: Skip Check
if: needs.check-skip.outputs.should_skip == 'true'
run: |
Expand Down Expand Up @@ -898,8 +948,33 @@ jobs:
--ulimit core=-1
--cgroupns=host
-v /sys/fs/cgroup:/sys/fs/cgroup:rw
-v /usr/share:/host_usr_share
-v /usr/local:/host_usr_local
-v /opt:/host_opt

steps:
- name: Free Disk Space
if: needs.check-skip.outputs.should_skip != 'true'
run: |
echo "=== Disk space before cleanup ==="
df -h /

# Remove pre-installed tools from host to free disk space
rm -rf /host_opt/hostedtoolcache || true # GitHub Actions tool cache
rm -rf /host_usr_local/lib/android || true # Android SDK
rm -rf /host_usr_share/dotnet || true # .NET SDK
rm -rf /host_opt/ghc || true # Haskell GHC
rm -rf /host_usr_local/.ghcup || true # Haskell GHCup
rm -rf /host_usr_share/swift || true # Swift
rm -rf /host_usr_local/share/powershell || true # PowerShell
rm -rf /host_usr_local/share/chromium || true # Chromium
rm -rf /host_usr_share/miniconda || true # Miniconda
rm -rf /host_opt/az || true # Azure CLI
rm -rf /host_usr_share/sbt || true # Scala Build Tool

echo "=== Disk space after cleanup ==="
df -h /

- name: Skip Check
if: needs.check-skip.outputs.should_skip == 'true'
run: |
Expand Down Expand Up @@ -1233,6 +1308,22 @@ jobs:
rpm -qi apache-cloudberry-db-incubating
} 2>&1 | tee -a build-logs/details/rpm-installation.log

# Clean up downloaded RPM artifacts to free disk space
echo "=== Disk space before RPM cleanup ==="
echo "Human readable:"
df -kh /
echo "Exact KB:"
df -k /
echo "RPM artifacts size:"
du -sh "${GITHUB_WORKSPACE}"/rpm_build_artifacts || true
echo "Cleaning up RPM artifacts to free disk space..."
rm -rf "${GITHUB_WORKSPACE}"/rpm_build_artifacts
echo "=== Disk space after RPM cleanup ==="
echo "Human readable:"
df -kh /
echo "Exact KB:"
df -k /

- name: Extract source tarball
if: success() && needs.check-skip.outputs.should_skip != 'true'
env:
Expand All @@ -1258,6 +1349,22 @@ jobs:
du -sh "${SRC_DIR}/../cloudberry"
} 2>&1 | tee -a build-logs/details/source-extraction.log

# Clean up source tarball to free disk space
echo "=== Disk space before source tarball cleanup ==="
echo "Human readable:"
df -kh /
echo "Exact KB:"
df -k /
echo "Source tarball artifacts size:"
du -sh "${GITHUB_WORKSPACE}"/source_build_artifacts || true
echo "Cleaning up source tarball to free disk space..."
rm -rf "${GITHUB_WORKSPACE}"/source_build_artifacts
echo "=== Disk space after source tarball cleanup ==="
echo "Human readable:"
df -kh /
echo "Exact KB:"
df -k /

- name: Create Apache Cloudberry demo cluster
if: success() && needs.check-skip.outputs.should_skip != 'true'
env:
Expand Down
Loading