Update to their latest version on time Update Rust to 1.81 as it is the minimal required version for CrosVM Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35598>
57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
|
|
# When changing this file, you need to bump the following
|
|
# .gitlab-ci/image-tags.yml tags:
|
|
# DEBIAN_BASE_TAG
|
|
|
|
# Do a very early check to make sure the tag is correct without the need of
|
|
# setting up the environment variables locally
|
|
ci_tag_build_time_check "CROSVM_TAG"
|
|
|
|
set -uex
|
|
|
|
section_start crosvm "Building crosvm"
|
|
|
|
git config --global user.email "mesa@example.com"
|
|
git config --global user.name "Mesa CI"
|
|
|
|
CROSVM_VERSION=4a6b4316155742fbfa1be7087c2ee578cfee884d
|
|
git clone --single-branch -b main --no-checkout https://chromium.googlesource.com/crosvm/crosvm /platform/crosvm
|
|
pushd /platform/crosvm
|
|
git checkout "$CROSVM_VERSION"
|
|
git submodule update --init
|
|
|
|
VIRGLRENDERER_VERSION=06d43ce974b664f9dc521b706a0ad7f91dbf2866
|
|
rm -rf third_party/virglrenderer
|
|
git clone --single-branch -b main --no-checkout https://gitlab.freedesktop.org/virgl/virglrenderer.git third_party/virglrenderer
|
|
pushd third_party/virglrenderer
|
|
git checkout "$VIRGLRENDERER_VERSION"
|
|
meson setup build/ -D libdir=lib -D render-server-worker=process -D venus=true ${EXTRA_MESON_ARGS:-}
|
|
meson install -C build
|
|
popd
|
|
|
|
rm rust-toolchain
|
|
|
|
RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
bindgen-cli \
|
|
--locked \
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
--root /usr/local \
|
|
--version 0.71.1 \
|
|
${EXTRA_CARGO_ARGS:-}
|
|
|
|
CROSVM_USE_SYSTEM_MINIGBM=1 CROSVM_USE_SYSTEM_VIRGLRENDERER=1 RUSTFLAGS='-L native=/usr/local/lib' cargo install \
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
--locked \
|
|
--features 'default-no-sandbox gpu x virgl_renderer' \
|
|
--path . \
|
|
--root /usr/local \
|
|
${EXTRA_CARGO_ARGS:-}
|
|
|
|
popd
|
|
|
|
rm -rf /platform/crosvm
|
|
|
|
section_end crosvm
|