1#!/bin/bash 2# SPDX-License-Identifier: MIT 3 4set -ex 5 6git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools.git --single-branch --no-checkout 7cd igt-gpu-tools 8git checkout $IGT_VERSION 9 10if [[ "$KERNEL_ARCH" = "arm" ]]; then 11 . ../.gitlab-ci/container/create-cross-file.sh armhf 12 EXTRA_MESON_ARGS="--cross-file /cross_file-armhf.txt" 13fi 14 15MESON_OPTIONS="-Doverlay=disabled \ 16 -Dchamelium=disabled \ 17 -Dvalgrind=disabled \ 18 -Dman=enabled \ 19 -Dtests=enabled \ 20 -Drunner=enabled \ 21 -Dlibunwind=enabled \ 22 -Dprefix=/igt" 23 24mkdir -p /igt 25meson build $MESON_OPTIONS $EXTRA_MESON_ARGS 26ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1 27ninja -C build install 28 29mkdir -p artifacts/ 30tar -cf artifacts/igt.tar /igt 31 32# Pass needed files to the test stage 33S3_ARTIFACT_NAME="igt.tar.gz" 34gzip -c artifacts/igt.tar > ${S3_ARTIFACT_NAME} 35ci-fairy s3cp --token-file "${CI_JOB_JWT_FILE}" ${S3_ARTIFACT_NAME} https://${PIPELINE_ARTIFACTS_BASE}/${KERNEL_ARCH}/${S3_ARTIFACT_NAME} 36