Skip to content

Commit

Permalink
Add big-pkgs.list
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Nov 16, 2023
1 parent b711597 commit 5a5f030
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,6 @@ jobs:
fi
done
#- name: Free additional disk space (if necessary)
# run: |
# if grep -q '^clvk$\|^dart$\|^rust$\|^rustc-nightly$' ./built_gpkg_packages.txt || \
# grep -q '^firefox$' ./built_termux-x11_packages.txt; then
# echo "Free additional disk space on host"
# sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(cabal-|dotnet-|ghc-|libmono|php|aspnetcore)') \
# mono-runtime-common monodoc-manual ruby
# sudo apt autoremove -yq
# sudo rm -rf /opt/hostedtoolcache /usr/local /usr/share/dotnet /usr/share/swift
# fi

- name: Lint packages
run: |
declare -a package_recipes
Expand All @@ -187,7 +176,18 @@ jobs:
done
if [ ! -z "$packages" ]; then
TERMUX_BUILDER_IMAGE_NAME="ghcr.io/termux/package-builder-cgct" ./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} --format pacman --library glibc $packages
if grep -qP "(^|\s)${packages// /($|\s)|(^|\s)}($|\s)" ./big-pkgs.list; then
./scripts/setup-ubuntu.sh
./scripts/setup-cgct.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
NDK=$ANDROID_NDK_LATEST_HOME ANDROID_HOME=$ANDROID_SDK_ROOT ./build-package.sh -I -a ${{ matrix.target_arch }} --format pacman --library glibc $packages
else
TERMUX_BUILDER_IMAGE_NAME="ghcr.io/termux/package-builder-cgct" ./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} --format pacman --library glibc $packages
fi
fi
- name: Generate build artifacts
Expand Down
Empty file added big-pkgs.list
Empty file.

0 comments on commit 5a5f030

Please sign in to comment.