summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-09 20:45:35 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-09 20:45:35 +0200
commitca3cf5df4611ac4d12020a037d7202912f64edbc (patch)
tree58804a8d4e239b568b52929222a6167543db4682
parent4b39f32b8af6ef1e02deca01ff2eb60389e5b46f (diff)
downloadliw-dot-files-ca3cf5df4611ac4d12020a037d7202912f64edbc.tar.gz
amibent.yaml: add cachedir
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rw-r--r--ambient.yaml22
1 files changed, 22 insertions, 0 deletions
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