1919 - name : Clone repo
2020 uses : actions/checkout@v4
2121
22+ # AVD needs a lot of disk space, so we need to free up some space
23+ # See: https://github.com/ReactiveCircus/android-emulator-runner/issues/390#issuecomment-2323948660
24+ - name : Free disk space
25+ run : |
26+ sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(aspnetcore|cabal-|dotnet-|ghc-|libmono|mongodb-|mysql-|php)') \
27+ firefox google-chrome-stable google-cloud-cli microsoft-edge-stable mono-devel mono-runtime-common monodoc-manual powershell ruby
28+ sudo apt autoremove -yq
29+ sudo apt clean
30+ sudo rm -fr /opt/ghc /opt/hostedtoolcache /usr/lib/node_modules /usr/local/share/boost /usr/share/dotnet /usr/share/swift
31+
2232 - name : Validate Gradle Wrapper
2333 uses : gradle/wrapper-validation-action@v2
2434
@@ -28,11 +38,13 @@ jobs:
2838 java-version : 17
2939 distribution : adopt
3040
41+ - name : Setup Android SDK
42+ uses : android-actions/setup-android@v3
43+
3144 - name : Set up Python
3245 uses : actions/setup-python@v4
3346 with :
3447 python-version : ' 3.11'
35-
3648 - name : Install native build dependencies
3749 run : |
3850 sudo apt update
5264 sudo udevadm control --reload-rules
5365 sudo udevadm trigger --name-match=kvm
5466
55- # AVD needs a lot of disk space, so we need to free up some space
56- # See: https://github.com/ReactiveCircus/android-emulator-runner/issues/390#issuecomment-2323948660
57- - name : Free disk space
58- run : |
59- sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(aspnetcore|cabal-|dotnet-|ghc-|libmono|mongodb-|mysql-|php)') \
60- firefox google-chrome-stable google-cloud-cli microsoft-edge-stable mono-devel mono-runtime-common monodoc-manual powershell ruby
61- sudo apt clean
62- sudo rm -fr /opt/ghc /opt/hostedtoolcache /usr/lib/node_modules /usr/local/share/boost /usr/share/dotnet /usr/share/swift
63-
6467 - name : AVD cache
6568 uses : actions/cache@v4
6669 id : avd-cache
0 commit comments