gitlab-ci: Only keep the build logs as artifacts.
authorEric Anholt <eric@anholt.net>
Wed, 24 Jul 2019 16:27:48 +0000 (09:27 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 25 Jul 2019 15:56:49 +0000 (08:56 -0700)
On a build failure, we were tarring up the whole ccache directory,
build.ninja, build products, etc.  This was over 400MB compressed on a
recent early meson-main build failure, which fd.o then has to hang on
to for 4 weeks.  The build logs are probably the interesting part, are
potentially useful regardless ("how did CI's build flags differ from
mine?"), and are <500k uncompressed on my personal meson build.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
.gitlab-ci.yml

index a43e69c00e466b394448bb891967e99bdf3e1bd7..a8a16f6c1fb505bbb8a9b6098de55fe8088721da 100644 (file)
@@ -61,8 +61,11 @@ debian:
     paths:
       - ccache
   artifacts:
-    when: on_failure
-    untracked: true
+    when: always
+    paths:
+      - _build/meson-logs/*.txt
+      # scons:
+      - _build/*/config.log
   variables:
     CCACHE_COMPILERCHECK: "content"
   # Use ccache transparently, and print stats before/after