mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
0b4e0ce509
The GitLab cache is kept across jobs, whether they succeeded or not: this means that if a compiler check fails during the Meson configuration, the small compiler program gets cached and restored the next time the job is run, thus failing again.
28 lines
514 B
YAML
28 lines
514 B
YAML
image: ebassi/gitlab-gtk:latest
|
|
|
|
stages:
|
|
- build
|
|
|
|
before_script:
|
|
- mkdir -p _ccache
|
|
- export CCACHE_BASEDIR=${PWD}
|
|
- export CCACHE_DIR=${PWD}/_ccache
|
|
|
|
cache:
|
|
paths:
|
|
- subprojects/gdk-pixbuf/
|
|
- subprojects/glib/
|
|
- subprojects/graphene/
|
|
- subprojects/libepoxy/
|
|
- subprojects/pango/
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- bash -x ./.gitlab-ci/test-docker.sh
|
|
artifacts:
|
|
when: on_failure
|
|
name: "gtk-${CI_COMMIT_REF_NAME}"
|
|
paths:
|
|
- "${CI_PROJECT_DIR}/_build/meson-logs"
|