ci/android: Use prebuilt cuttlefish packages from ci-deb-repo
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:
committed by
Marge Bot
parent
1f7fae992c
commit
0e80e831f8
@@ -31,6 +31,8 @@ EPHEMERAL=(
|
|||||||
|
|
||||||
DEPS=(
|
DEPS=(
|
||||||
aapt
|
aapt
|
||||||
|
cuttlefish-base
|
||||||
|
cuttlefish-user
|
||||||
iproute2
|
iproute2
|
||||||
)
|
)
|
||||||
apt-get install -y --no-remove --no-install-recommends \
|
apt-get install -y --no-remove --no-install-recommends \
|
||||||
@@ -111,7 +113,7 @@ rm -rf /VK-GL-CTS
|
|||||||
|
|
||||||
############### Downloading Cuttlefish resources ...
|
############### Downloading Cuttlefish resources ...
|
||||||
|
|
||||||
section_start cuttlefish "Downloading, building and installing Cuttlefish"
|
section_start cuttlefish "Downloading and setting up Cuttlefish"
|
||||||
|
|
||||||
mkdir /cuttlefish
|
mkdir /cuttlefish
|
||||||
pushd /cuttlefish
|
pushd /cuttlefish
|
||||||
@@ -135,24 +137,6 @@ curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|||||||
|
|
||||||
popd
|
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
|
addgroup --system kvm
|
||||||
usermod -a -G kvm,cvdnetwork root
|
usermod -a -G kvm,cvdnetwork root
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user