From 11a0fdc061b6483af8644a84adf05e54c8425683 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Sun, 7 Jun 2020 15:58:21 -0400 Subject: [PATCH] CIs: Replace cache fingerprint with username of the user launching the build to make it reusable between PRs --- .circleci/config.yml | 4 ++-- .gitlab-ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0648492c..45b32548 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ jobs: - checkout - restore_cache: - key: heads-{{ .Branch }}{{ .Environment.CACHE_VERSION }} + key: heads-{{ .Environment.CIRCLE_USERNAME }}-{{ .Environment.CACHE_VERSION }} - run: name: git reset @@ -154,7 +154,7 @@ jobs: path: build/qemu-coreboot - save_cache: - key: heads-{{ .Branch }}{{ .Environment.CACHE_VERSION }} + key: heads-{{ .CIRCLE_PROJECT_USERNAME }}{{ .Environment.CACHE_VERSION }} paths: - packages - crossgcc diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98bdcdc1..beec06a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,7 @@ build: - packages - crossgcc - build - key: "$CI_COMMIT_REF_SLUG" + key: "heads-$GITLAB_USER_LOGIN" script: - dnf install -y @development-tools gcc-c++ gcc-gnat zlib-devel perl-Digest-MD5 perl-Digest-SHA uuid-devel pcsc-tools ncurses-devel lbzip2 libuuid-devel lzma elfutils-libelf-devel bc bzip2 bison flex git gnupg iasl m4 nasm patch python wget libusb-devel cmake automake pv bsdiff autoconf libtool cpio texinfo - git fetch origin