Skip to content

Commit

Permalink
Try to avoid pipefails in Qt build GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Oct 22, 2023
1 parent a602245 commit 2a10456
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/free_up_disk_space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ sudo apt-get autoclean -y >/dev/null 2>&1
echo "some packages purged"

# Avoid pipefail by capturing output
big_packages=$(sudo dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr | head -n 10)
echo $big_packages
big_packages=($(sudo dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr))
echo ${big_packages[@]:0:20}
df . -h
sudo du /usr/ -hx -d 4 --threshold=1G | sort -hr | head
usr_dirs=($(sudo du /usr/ -hx -d 4 --threshold=1G | sort -hr))
echo $(usr_dirs[@]:0:20}
sudo rm -rf ${GITHUB_WORKSPACE}/.git

0 comments on commit 2a10456

Please sign in to comment.