Skip to content

Commit

Permalink
ci: clean Android NDK provided by Runner
Browse files Browse the repository at this point in the history
and install Termux's
  • Loading branch information
licy183 authored and finagolfin committed Nov 8, 2024
1 parent e19bb78 commit 588b7cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,13 @@ jobs:
if [ ${{ steps.build-info.outputs.docker-build }} == 'false' ]; then
./scripts/setup-ubuntu.sh
NDK= ANDROID_HOME= ./scripts/setup-android-sdk.sh
sudo apt install ninja-build
sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(aspnetcore|cabal-|dotnet-|ghc-|libmono|mongodb-|mysql-|php)') \
firefox google-chrome-stable microsoft-edge-stable mono-devel mono-runtime-common monodoc-manual ruby
sudo apt autoremove -yq
sudo apt clean
sudo rm -fr /opt/ghc /opt/hostedtoolcache /usr/lib/node_modules /usr/local/share/boost /usr/share/dotnet /usr/share/swift
sudo rm -fr /opt/ghc /opt/hostedtoolcache /usr/lib/node_modules /usr/local/share/boost /usr/share/dotnet /usr/share/swift /usr/local/lib/android
fi
- name: Build packages
Expand All @@ -202,7 +203,7 @@ jobs:
done
if [ ${{ steps.build-info.outputs.docker-build }} == 'false' ]; then
NDK=$ANDROID_NDK ANDROID_HOME=$ANDROID_SDK_ROOT ./build-package.sh -I -a ${{ matrix.target_arch }} $packages
NDK= ANDROID_HOME= ./build-package.sh -I -a ${{ matrix.target_arch }} $packages
elif [ -n "$packages" ]; then
./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} $packages
fi
Expand Down

0 comments on commit 588b7cd

Please sign in to comment.