Skip to content

Commit

Permalink
Free disk space to stabilize the GitHub build of oak_client_android_app.
Browse files Browse the repository at this point in the history
Individual steps will be reviewed for effectiveness; ineffective ones will be removed.

Bug: 352507636

Change-Id: Ifa4b80d497f047127527dfc356383c48780bac93
  • Loading branch information
thmsbinder committed Jul 12, 2024
1 parent afcc181 commit 95d5dc8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,34 @@ jobs:
- name: Mount main branch
uses: actions/checkout@v4

# The runner comes with all this software pre-installed:
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md
# To avoid failures due to lack of disk space, we delete some large packages
# which are irrelevant for building. Sources:
# https://github.com/jens-maus/RaspberryMatic/blob/ea6b8ce0dd2d53ea88b2766ba8d7f8e1d667281f/.github/workflows/ci.yml#L34-L40
# https://github.com/actions/runner-images/issues/2875
- name: Free disk space
run: |
df --human-readable
sudo apt-get remove --yes \
'^dotnet-.*' '^llvm-.*' 'php.*' azure-cli google-cloud-cli \
hhvm google-chrome-stable firefox powershell
df --human-readable
sudo apt-get autoremove --yes
df --human-readable
sudo apt clean
df --human-readable
docker rmi $(docker image ls --all --quiet)
df --human-readable
rm --recursive --force "${AGENT_TOOLSDIRECTORY}"
df --human-readable
rm --recursive --force /usr/local/share/boost
df --human-readable
sudo swapoff --all
df --human-readable
sudo rm --force /swapfile
df --human-readable
# Keeps two versions of SUBJECT_PATHS, with space resp. comma as
# path separator. Both are needed in later steps.
- name: Parse buildconfig
Expand Down

0 comments on commit 95d5dc8

Please sign in to comment.