ci(packages.yml): clean up for really large package
Also remove the NDK and ANDROID_HOME enviromment variables since we never use them after moved to and from Docker image
This commit is contained in:
parent
030e7768f9
commit
3a2401805c
|
@ -26,9 +26,6 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # actions/upload-artifact doesn't need contents: write
|
contents: read # actions/upload-artifact doesn't need contents: write
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
|
||||||
ANDROID_HOME: "/opt/termux/android-sdk"
|
|
||||||
NDK: "/opt/termux/android-ndk"
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target_arch: [aarch64, arm, i686, x86_64]
|
target_arch: [aarch64, arm, i686, x86_64]
|
||||||
|
@ -178,6 +175,12 @@ jobs:
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ! -z "$packages" ]; then
|
if [ ! -z "$packages" ]; then
|
||||||
|
if grep -q 'rust' <<< "${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
|
||||||
|
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
|
if grep -q ' clvk\|dart\|libllvm\|rust\|rustc-nightly\|swift\|tinygo\|wasmer\|zig\|firefox ' <<< "$packages"; then
|
||||||
./scripts/setup-ubuntu.sh
|
./scripts/setup-ubuntu.sh
|
||||||
sudo apt install ninja-build
|
sudo apt install ninja-build
|
||||||
|
|
Loading…
Reference in New Issue