rebuild(swift), ci(packages): Clear out more space for Swift and log how much space there is
This commit is contained in:
parent
efc0cc6d82
commit
dce69dad77
|
@ -175,7 +175,7 @@ jobs:
|
|||
done
|
||||
|
||||
if [ ! -z "$packages" ]; then
|
||||
if grep -q 'rust' <<< "${packages}"; then
|
||||
if grep -q ' rust\|swift ' <<< "${packages}"; then
|
||||
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
|
||||
|
@ -184,7 +184,11 @@ jobs:
|
|||
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
|
||||
|
|
|
@ -103,7 +103,6 @@ termux_step_host_build() {
|
|||
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
|
||||
termux_setup_cmake
|
||||
termux_setup_ninja
|
||||
termux_setup_swift
|
||||
|
||||
local CLANG=$(command -v clang)
|
||||
local CLANGXX=$(command -v clang++)
|
||||
|
|
Loading…
Reference in New Issue