summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2021-01-27 12:35:15 +0100
committerAzul <azul@riseup.net>2021-01-27 12:35:15 +0100
commita35b008346744eb756622c12f034c6e7e5b4ed7f (patch)
treed0398d0ad1c473c5205aa01b24d11ebc7b57bd33
parent320ce805978d45631c2f2180f453dc1b97198f08 (diff)
ci: try using gitlab cache mechanismazul/ci-cache
-rw-r--r--.gitlab-ci.yml23
1 files changed, 15 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 23add0fc..18520f87 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,15 +4,12 @@ stages:
- test
before_script:
- - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi
- if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi
- rustc --version
- cargo --version
- clang --version
after_script:
- - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR -type f -atime +7 -delete; fi
- - if [ -d $CARGO_TARGET_DIR ]; then du -sh $CARGO_TARGET_DIR; fi
- if [ -d $CARGO_HOME ]; then du -sh $CARGO_HOME; fi
bullseye:
@@ -33,9 +30,13 @@ bullseye:
- if ! git diff --quiet ; then echo "The build changed the source. Please investigate." ; git diff ; fi
variables:
- CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.$CI_CONCURRENT_ID.bullseye
RUSTFLAGS: -D warnings -A unused-parens
+ cache:
+ paths:
+ - target
+ key: ${CI_JOB_NAME}
+
all_commits:
# Test each commit up to main, to facilitate bisecting.
stage: test
@@ -48,7 +49,6 @@ all_commits:
before_script:
- apt update -y -qq
- apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 clang libclang-dev llvm pkg-config nettle-dev git
- - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi
- if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi
- rustc --version
- cargo --version
@@ -58,10 +58,14 @@ all_commits:
- .ci/all_commits.sh
variables:
- CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.$CI_CONCURRENT_ID.all_commits
RUSTFLAGS: -D warnings -A unused-parens
GIT_STRATEGY: clone
+ cache:
+ paths:
+ - target
+ key: ${CI_JOB_NAME}
+
codespell:
tags:
- linux
@@ -83,7 +87,6 @@ rust-stable:
before_script:
- apt update -y -qq
- apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 clang libclang-dev llvm pkg-config nettle-dev
- - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi
- if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi
- rustc --version
- cargo --version
@@ -93,9 +96,13 @@ rust-stable:
- cargo test -p buffered-reader -p sequoia-openpgp -p sequoia-sqv
variables:
- CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.$CI_CONCURRENT_ID.rust-stable
RUSTFLAGS: -D warnings -A unused-parens
+ cache:
+ paths:
+ - target
+ key: ${CI_JOB_NAME}
+
windows-gnu:
tags:
- win