-
Notifications
You must be signed in to change notification settings - Fork 30
fix: make disk space for linux CI builds #1462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| - name: Configure CRT Docker Images | ||
| run: | | ||
| echo "Disk space:" | ||
| df -h | ||
| # TODO: Fix our CI/images setup to optimize for size | ||
| echo "Making space on disk for linux build" | ||
| # Remove .NET SDKs | ||
| sudo rm -rf /usr/share/dotnet | ||
| # Remove Swift toolchain | ||
| sudo rm -rf /usr/share/swift | ||
| # Remove Haskell (GHC) | ||
| sudo rm -rf /usr/local/.ghcup | ||
| # Remove Julia | ||
| sudo rm -rf /usr/local/julia* | ||
| # Remove Android SDKs | ||
| sudo rm -rf /usr/local/lib/android | ||
| # Remove Chromium | ||
| sudo rm -rf /usr/local/share/chromium | ||
| # Remove Microsoft/Edge and Google Chrome builds | ||
| sudo rm -rf /opt/microsoft /opt/google | ||
| # Remove Azure CLI | ||
| sudo rm -rf /opt/az | ||
| # Remove PowerShell | ||
| sudo rm -rf /usr/local/share/powershell | ||
| echo "Disk space:" | ||
| df -h | ||
| ./aws-crt-kotlin/docker-images/build-all.sh | ||
| echo "Disk space:" | ||
| df -h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Let's move the cleanup instructions to a dedicated step, preferably the first step (i.e., before actions/checkout).
| - name: Configure CRT Docker Images | ||
| run: | | ||
| run: | | ||
| ./aws-crt-kotlin/docker-images/build-all.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Extraneous trailing whitespace
Issue #
No GH issue.
Our linux CI builds are exhausting the disk space in GH runners:
Description of changes
There are some unnecessary tools installed in GH runners we can get rid of so linux builds don't exhaust disk space. More research could still be done to figure out how to optimize our linux builds, so we don't need to do this to begin with.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.