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