Skip to content

Commit ff06934

Browse files
Merge pull request #132 from usefulness/free_disk_space_on_ci
2 parents 6b08385 + 7c16c9a commit ff06934

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/build_binaries.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616
build-binaries:
1717
runs-on: ubuntu-latest
1818
steps:
19+
# From <https://github.com/actions/runner-images/issues/2840>
20+
- name: Free up disk space
21+
run: |
22+
sudo rm -rf /usr/share/dotnet
23+
sudo rm -rf /opt/ghc
24+
sudo rm -rf "/usr/local/share/boost"
25+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
26+
1927
- uses: actions/checkout@v4
2028
with:
2129
fetch-depth: 0

libwebp-jni/compile-all.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -ex -o pipefail
44
# Ensure clean build environments
55
rm -rf build
66

7+
df -H
78
./dockcross/dockcross-linux-armv5 bash -c './compile.sh Linux arm'
89
./dockcross/dockcross-linux-armv6-lts bash -c './compile.sh Linux armv6'
910
./dockcross/dockcross-linux-armv7-lts bash -c './compile.sh Linux armv7'
@@ -12,12 +13,16 @@ rm -rf build
1213
./dockcross/dockcross-manylinux-x64 bash -c './compile.sh Linux x86_64'
1314
./dockcross/dockcross-linux-ppc64le bash -c './compile.sh Linux ppc64'
1415

16+
df -H
1517
./dockcross/dockcross-windows-static-x86 bash -c './compile.sh Windows x86'
1618
./dockcross/dockcross-windows-static-x64 bash -c './compile.sh Windows x86_64'
1719

20+
df -H
1821
docker run --rm -v $(pwd):/workdir -e CROSS_TRIPLE=x86_64-apple-darwin gotson/crossbuild ./compile.sh Mac x86_64 /workdir/multiarch-darwin.cmake
1922
docker run --rm -v $(pwd):/workdir -e CROSS_TRIPLE=aarch64-apple-darwin gotson/crossbuild ./compile.sh Mac aarch64 /workdir/multiarch-darwin.cmake
2023

24+
df -H
25+
2126
# Ensure clean target
2227
rm -r ../webp-imageio/src/main/resources/native
2328
cp -r build/native ../webp-imageio/src/main/resources/

0 commit comments

Comments
 (0)