1#!/usr/bin/env bash 2# shellcheck disable=SC2086 # we want word splitting 3 4set -ex 5 6git config --global user.email "mesa@example.com" 7git config --global user.name "Mesa CI" 8 9CROSVM_VERSION=e3815e62d675ef436956a992e0ed58b7309c759d 10git clone --single-branch -b main --no-checkout https://chromium.googlesource.com/crosvm/crosvm /platform/crosvm 11pushd /platform/crosvm 12git checkout "$CROSVM_VERSION" 13git submodule update --init 14 15VIRGLRENDERER_VERSION=66049f6b101438fa9984269893e8def26a3b9b60 16rm -rf third_party/virglrenderer 17git clone --single-branch -b main --no-checkout https://gitlab.freedesktop.org/virgl/virglrenderer.git third_party/virglrenderer 18pushd third_party/virglrenderer 19git checkout "$VIRGLRENDERER_VERSION" 20meson setup build/ -D libdir=lib -D render-server-worker=process -D venus=true $EXTRA_MESON_ARGS 21meson install -C build 22popd 23 24cargo update -p pkg-config@0.3.26 --precise 0.3.27 25 26RUSTFLAGS='-L native=/usr/local/lib' cargo install \ 27 bindgen-cli \ 28 --locked \ 29 -j ${FDO_CI_CONCURRENT:-4} \ 30 --root /usr/local \ 31 --version 0.65.1 \ 32 $EXTRA_CARGO_ARGS 33 34CROSVM_USE_SYSTEM_VIRGLRENDERER=1 RUSTFLAGS='-L native=/usr/local/lib' cargo install \ 35 -j ${FDO_CI_CONCURRENT:-4} \ 36 --locked \ 37 --features 'default-no-sandbox gpu x virgl_renderer virgl_renderer_next' \ 38 --path . \ 39 --root /usr/local \ 40 $EXTRA_CARGO_ARGS 41 42popd 43 44rm -rf /platform/crosvm 45