ci/android: Use prebuilt cuttlefish packages from ci-deb-repo
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Make use of the prebuilt cuttlefish packages from the Debian
Trixie base. These packages are built and published to an apt
repository under ci-deb-repo

Signed-off-by: Ritesh Raj Sarraf <ritesh.sarraf@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37633>
This commit is contained in:
Ritesh Raj Sarraf 2025-09-30 15:41:18 +05:30 committed by Marge Bot
parent 1f7fae992c
commit 0e80e831f8

View file

@ -31,6 +31,8 @@ EPHEMERAL=(
DEPS=(
aapt
cuttlefish-base
cuttlefish-user
iproute2
)
apt-get install -y --no-remove --no-install-recommends \
@ -111,7 +113,7 @@ rm -rf /VK-GL-CTS
############### Downloading Cuttlefish resources ...
section_start cuttlefish "Downloading, building and installing Cuttlefish"
section_start cuttlefish "Downloading and setting up Cuttlefish"
mkdir /cuttlefish
pushd /cuttlefish
@ -135,24 +137,6 @@ curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
popd
############### Building and installing Debian package ...
ANDROID_CUTTLEFISH_VERSION=v1.0.1
mkdir android-cuttlefish
pushd android-cuttlefish
git init
git remote add origin https://github.com/google/android-cuttlefish.git
git fetch --depth 1 origin "$ANDROID_CUTTLEFISH_VERSION"
git checkout FETCH_HEAD
./tools/buildutils/build_packages.sh
apt-get install -y --allow-downgrades ./cuttlefish-base_*.deb ./cuttlefish-user_*.deb
popd
rm -rf android-cuttlefish
addgroup --system kvm
usermod -a -G kvm,cvdnetwork root