mirror of
https://github.com/woodchen-ink/docker-firefox.git
synced 2025-07-18 05:42:00 +08:00
Use jlumbroso/free-disk-space to free space on the build node.
This commit is contained in:
parent
ab4cc0e1e1
commit
9db4f58a14
26
.github/workflows/build-image.yml
vendored
26
.github/workflows/build-image.yml
vendored
@ -23,23 +23,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Free disk space
|
||||
run: |
|
||||
# Free disk space.
|
||||
echo "::group::Before"
|
||||
df -h /
|
||||
echo "::endgroup::"
|
||||
echo "::group::Removing unneeded softwares and files..."
|
||||
for DIR in /usr/local/lib/android /usr/share/dotnet /opt/ghc
|
||||
do
|
||||
if [ -d "$DIR" ]; then
|
||||
echo "Removing $DIR..."
|
||||
sudo rm -r "$DIR"
|
||||
fi
|
||||
done
|
||||
echo "::endgroup::"
|
||||
echo "::group::After"
|
||||
df -h /
|
||||
echo "::endgroup::"
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
tool-cache: true
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
docker-images: true
|
||||
swap-storage: false
|
||||
|
||||
- name: Prepare
|
||||
id: prep
|
||||
|
Loading…
x
Reference in New Issue
Block a user