ci: Expire CI artifacts after 1 week

The default is 30 days, but we don’t need them around that long. This
should free up some disk space on the GitLab/CI runner systems.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-04-06 12:54:54 +01:00
parent c80ff2474f
commit f68943dcf2

View File

@ -103,6 +103,7 @@ fedora-x86_64:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -144,6 +145,7 @@ debian-stable-x86_64:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -181,6 +183,7 @@ installed-tests:
artifacts: artifacts:
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -209,6 +212,7 @@ G_DISABLE_ASSERT:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -245,6 +249,7 @@ valgrind:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -257,6 +262,7 @@ valgrind:
artifacts: artifacts:
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/meson-logs" - "_build/meson-logs"
@ -284,6 +290,7 @@ cross-mingw64:
junit: "_build/${env:CI_JOB_NAME}-report.xml" junit: "_build/${env:CI_JOB_NAME}-report.xml"
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}" name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- _build/meson-logs - _build/meson-logs
- "_build/${env:CI_JOB_NAME}-report.xml" - "_build/${env:CI_JOB_NAME}-report.xml"
@ -311,6 +318,7 @@ msys2-mingw32:
junit: "_build/${env:CI_JOB_NAME}-report.xml" junit: "_build/${env:CI_JOB_NAME}-report.xml"
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}" name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- _build/meson-logs - _build/meson-logs
- "_build/${env:CI_JOB_NAME}-report.xml" - "_build/${env:CI_JOB_NAME}-report.xml"
@ -331,6 +339,7 @@ vs2017-x64:
junit: "_build/${env:CI_JOB_NAME}-report.xml" junit: "_build/${env:CI_JOB_NAME}-report.xml"
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}" name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- _build/meson-logs - _build/meson-logs
- "_build/${env:CI_JOB_NAME}-report.xml" - "_build/${env:CI_JOB_NAME}-report.xml"
@ -355,6 +364,7 @@ vs2017-x64-static:
junit: "_build/${env:CI_JOB_NAME}-report.xml" junit: "_build/${env:CI_JOB_NAME}-report.xml"
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}" name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- _build/meson-logs - _build/meson-logs
- "_build/${env:CI_JOB_NAME}-report.xml" - "_build/${env:CI_JOB_NAME}-report.xml"
@ -398,6 +408,7 @@ freebsd-12-x86_64:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -425,6 +436,7 @@ freebsd-13-x86_64:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -459,6 +471,7 @@ macos:
junit: "_build/${CI_JOB_NAME}-report.xml" junit: "_build/${CI_JOB_NAME}-report.xml"
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_build/config.h" - "_build/config.h"
- "_build/glib/glibconfig.h" - "_build/glib/glibconfig.h"
@ -472,6 +485,7 @@ coverage:
needs: ['fedora-x86_64', 'msys2-mingw32'] needs: ['fedora-x86_64', 'msys2-mingw32']
artifacts: artifacts:
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
expire_in: 1 week
paths: paths:
- _coverage/ - _coverage/
before_script: before_script:
@ -502,6 +516,7 @@ scan-build:
artifacts: artifacts:
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "_scan_build/meson-logs/scanbuild" - "_scan_build/meson-logs/scanbuild"
@ -535,6 +550,7 @@ coverity:
artifacts: artifacts:
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
expire_in: 1 week
paths: paths:
- "cov-int/build-log.txt" - "cov-int/build-log.txt"