diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-09 19:25:14 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-09 19:25:14 +0200 |
commit | 63a674bed38f3abad4543af8bca455bc41c64a0a (patch) | |
tree | ab251c0a2c5c2afe6e96c779197d13f4aed4351f | |
parent | 680b4a4930c1a7b1d0c6973634ed35ac0261ab5f (diff) | |
download | liw-dot-files-63a674bed38f3abad4543af8bca455bc41c64a0a.tar.gz |
ambient.yaml: clab, and commentd-out placeholder for subplot-web
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | ambient.yaml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ambient.yaml b/ambient.yaml index 6b673c6..ee38636 100644 --- a/ambient.yaml +++ b/ambient.yaml @@ -48,6 +48,18 @@ projects: - action: deb + # subplot-web: + # image: ~/tmp/ambient/ambient-boot.qcow2 + # source: ~/pers/subplot/subplot-web/src/ + # publish_artifacts: true + # plan: + # - action: shell + # shell: | + # sed -i 's#^srcdir:.*#srcdir: /workspace/src#' ikiwiki.setup + # sed -i 's#^destdir:.*#destdir: /workspace/artifacts#' ikiwiki.setup + + # ikiwiki --setup ikiwiki.setup --libdir /workspace/deps --rebuild --verbose + ambient-web: image: ~/tmp/ambient/ambient-boot.qcow2 source: ~/pers/ambient-ci/ambient-web/src/ @@ -226,6 +238,36 @@ projects: make cp gtdfh.html /workspace/artifacts/index.html + clab: + image: ~/tmp/ambient/ambient-boot.qcow2 + source: ~/pers/clab/git + 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" + subplot codegen clab.subplot -o test.py + rm -f test.log + if ! python3 test.py --log test.log; then + cat test.log + exit 1 + fi + rm -f test.log test.py + git status --ignored + + 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 + # - image: ~/tmp/ambient/ambient-boot.qcow2 # source: ~/pers/clab/git # publish_artifacts: true |