From ca3cf5df4611ac4d12020a037d7202912f64edbc Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 9 Jan 2024 20:45:35 +0200 Subject: amibent.yaml: add cachedir Signed-off-by: Lars Wirzenius Sponsored-by: author --- ambient.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ambient.yaml b/ambient.yaml index 56d7fb4..37ea7fe 100644 --- a/ambient.yaml +++ b/ambient.yaml @@ -36,6 +36,28 @@ projects: - action: cargo_build - action: cargo_test + cachedir: + image: ~/tmp/ambient/ambient-boot.qcow2 + source: ~/pers/obnam/cachedir + publish_artifacts: true + pre_plan: + - action: cargo_fetch + plan: + - action: rustup_setup + - action: cargo_clippy + - action: cargo_build + - action: cargo_test + - action: shell + shell: | + export PATH="/root/.cargo/bin:$PATH" + + V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')" + T="$(date -u "+%Y%m%dT%H%M%S")" + version="$V.ci$T-1" + dch -v "$version" "CI build under Ambient." + dch -r '' + - action: deb + pathdedup: image: ~/tmp/ambient/ambient-boot.qcow2 source: ~/pers/pathdedup/git -- cgit v1.2.1