ci(packages): Clear out disk space on the CI for large packages and rebuild Swift.
This commit is contained in:
parent
a5015b1f53
commit
d36bf3f0ba
|
@ -175,20 +175,14 @@ jobs:
|
|||
done
|
||||
|
||||
if [ ! -z "$packages" ]; then
|
||||
if grep -q ' rust\|swift ' <<< "${packages}"; then
|
||||
if grep -q ' \(clvk\|dart\|libllvm\|rust\|rustc-nightly\|swift\|tinygo\|wasmer\|zig\|firefox\)\( \|$\)' <<< "$packages"; then
|
||||
./scripts/setup-ubuntu.sh
|
||||
sudo apt install ninja-build
|
||||
sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(aspnetcore|cabal-|dotnet-|ghc-|libmono|php)') \
|
||||
firefox google-chrome-stable microsoft-edge-stable mono-runtime-common monodoc-manual ruby
|
||||
sudo apt autoremove -yq
|
||||
sudo rm -fr /opt/hostedtoolcache /usr/share/dotnet /usr/share/swift
|
||||
fi
|
||||
if grep -q ' clvk\|dart\|libllvm\|rust\|rustc-nightly\|swift\|tinygo\|wasmer\|zig\|firefox ' <<< "$packages"; then
|
||||
./scripts/setup-ubuntu.sh
|
||||
sudo apt install ninja-build
|
||||
# github CI is often running out of disk space for large packages,
|
||||
# so these df checks will let us know how much there was.
|
||||
df -h
|
||||
NDK=$ANDROID_NDK_ROOT ANDROID_HOME=$ANDROID_SDK_ROOT ./build-package.sh -I -a ${{ matrix.target_arch }} $packages
|
||||
df -h
|
||||
else
|
||||
./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} $packages
|
||||
fi
|
||||
|
|
|
@ -29,7 +29,7 @@ test $SWIFT_ARCH == 'arm' && SWIFT_ARCH='armv7'
|
|||
|
||||
termux_step_post_get_source() {
|
||||
# The Swift build-script requires a particular organization of source
|
||||
# directories, which the following sets up.
|
||||
# directories, which the following downloads and sets up.
|
||||
mkdir .temp
|
||||
mv [a-zA-Z]* .temp/
|
||||
mv .temp swift
|
||||
|
|
Loading…
Reference in New Issue