From eaba71e24c4b1a2e146c424e2d8059dd63963082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 15 May 2023 15:34:12 +0200 Subject: [PATCH] CI: cache MinGW tarballs now that runners have non-persistent storage --- .gitlab-ci.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9682ef7a7..412b1c463 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,16 +67,21 @@ pkg_source: pkg_windows: stage: pkg script: - - ln -s ~/tarballs windows/deps/ + - mkdir -p windows/deps/tarballs && cp ~/tarballs/matlab64-* windows/deps/tarballs/ - make -C windows + - rm windows/deps/tarballs/matlab64-* # No need to cache these files cache: - key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" - paths: - - windows/deps/sources64/ - - windows/deps/lib64/ - # We do not cache lib64-msys2, mingw64, octave64 and - # matlab64, because those are simply extracted from a tarball. It - # would be a waste of space and of (re-compression) time. + - key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + paths: + - windows/deps/sources64/ + - windows/deps/lib64/ + # We do not cache lib64-msys2, mingw64, octave64 and + # matlab64, because those are simply extracted from a tarball. It + # would be a waste of space and of (re-compression) time. + - key: $CI_JOB_NAME + # This cache is shared between all branches, to save space + paths: + - windows/deps/tarballs/ artifacts: paths: - windows/exe/* -- GitLab