update packages.yml

This commit is contained in:
Maxython
2023-11-15 21:57:35 +03:00
parent a7409619a5
commit 8fdeca0eb3

View File

@@ -34,6 +34,10 @@ jobs:
target_arch: [aarch64, arm, i686, x86_64]
fail-fast: false
steps:
- name: Setup arm and aarch64 CPU emulators
uses: dbhi/qus/action@main
with:
targets: arm aarch64
- name: Clone repository
uses: actions/checkout@v3
with:
@@ -152,17 +156,6 @@ jobs:
fi
done
- name: Free additional disk space (if necessary)
run: |
if grep -q '^clvk$\|^dart$\|^rust$\|^rustc-nightly$\|^tinygo$\|^wasmer$\|^zig$' ./built_termux-main_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
@@ -189,8 +182,18 @@ jobs:
done
if [ ! -z "$packages" ]; then
if grep -qP "(^|\s)$packages($|\s)" ./scripts/big-pkgs.list; 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
NDK=$ANDROID_NDK_LATEST_HOME ANDROID_HOME=$ANDROID_SDK_ROOT ./build-package.sh --format pacman -I -a ${{ matrix.target_arch }} $packages
else
./scripts/run-docker.sh ./build-package.sh --format pacman -I -a ${{ matrix.target_arch }} $packages
fi
fi
- name: Generate build artifacts
if: always()