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