aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml22
-rw-r--r--.gitlab-ci/lava-gitlab-ci.yml2
-rwxr-xr-x.gitlab-ci/meson-build.sh2
-rwxr-xr-x.gitlab-ci/run-shader-db.sh2
4 files changed, 20 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 723ccb9889a..bbc38ff156d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -136,19 +136,29 @@ debian-10:arm64:
# Just Linux
.build-linux:
extends: .build-common
+ tags:
+ - mesa-autoscale
cache:
key: ${CI_JOB_NAME}
paths:
- ccache
variables:
CCACHE_COMPILERCHECK: "content"
+ NINJA_FLAGS: "-j8" # autoscale is provisioned at 4 CPUs/job.
+ # kubernetes (the mesa-autoscale runner) always has a clean working
+ # dir, so we can't reuse the git clone, but that also means we don't
+ # need to download any extra history (normally extra history is
+ # needed so that a future fetch can find a shared parent).
+ GIT_DEPTH: 1
+ # Autoscale runners have 300GB of disk (since iops/throughput
+ # scales with disk size!), but we want to leave lots of space for
+ # container caching.
+ CCACHE_SIZE: 20G
# Use ccache transparently, and print stats before/after
before_script:
- export PATH="/usr/lib/ccache:$PATH"
- export CCACHE_BASEDIR="$PWD"
- - export CCACHE_DIR="$PWD/ccache"
- - ccache --max-size=1500M
- - ccache --zero-stats || true
+ - ccache --max-size="$CCACHE_SIZE" || true
- ccache --show-stats || true
after_script:
# In case the install dir is being saved as artifacts, tar it up
@@ -157,7 +167,6 @@ debian-10:arm64:
- if [ -d install ]; then
tar -cf artifacts/install.tar install;
fi
- - export CCACHE_DIR="$PWD/ccache"
- ccache --show-stats
.build-windows:
@@ -181,7 +190,7 @@ debian-10:arm64:
- .build-linux
- .use-debian-10:amd64
variables:
- SCONSFLAGS: "-j4"
+ SCONSFLAGS: "-j8"
script:
- .gitlab-ci/scons-build.sh
@@ -243,6 +252,9 @@ meson-main:
GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
EXTRA_OPTION: >
-D I-love-half-baked-turnips=true
+ NINJA_FLAGS: "-j4"
+ CCACHE_DIR: "$PWD/ccache"
+ CCACHE_SIZE: "1500M"
needs:
- debian-10:arm64
tags:
diff --git a/.gitlab-ci/lava-gitlab-ci.yml b/.gitlab-ci/lava-gitlab-ci.yml
index 89e798a4b0a..f50f07abb24 100644
--- a/.gitlab-ci/lava-gitlab-ci.yml
+++ b/.gitlab-ci/lava-gitlab-ci.yml
@@ -86,7 +86,7 @@ lava-container:arm64:
-D gallium-xa=false
-D gallium-nine=false
-D llvm=false
- - ninja -C mesa-build -j4
+ - ninja -C mesa-build -j8
- ninja -C mesa-build install
- find /artifacts/rootfs/mesa/lib -name \*.so -exec ${GCC_ARCH}-strip {} \;
diff --git a/.gitlab-ci/meson-build.sh b/.gitlab-ci/meson-build.sh
index d56e526ef20..0f4f490447d 100755
--- a/.gitlab-ci/meson-build.sh
+++ b/.gitlab-ci/meson-build.sh
@@ -58,7 +58,7 @@ meson _build --native-file=native.file \
${EXTRA_OPTION}
cd _build
meson configure
-ninja -j4
+ninja ${NINJA_FLAGS}
LC_ALL=C.UTF-8 ninja test
ninja install
cd ..
diff --git a/.gitlab-ci/run-shader-db.sh b/.gitlab-ci/run-shader-db.sh
index 7580457d850..a62a91b5ea9 100755
--- a/.gitlab-ci/run-shader-db.sh
+++ b/.gitlab-ci/run-shader-db.sh
@@ -12,6 +12,6 @@ cd /usr/local/shader-db
for driver in freedreno v3d; do
env LD_PRELOAD=$LIBDIR/lib${driver}_noop_drm_shim.so \
- ./run -j 4 ./shaders \
+ ./run -j 8 ./shaders \
> $ARTIFACTSDIR/${driver}-shader-db.txt
done