summaryrefslogtreecommitdiff
path: root/ci-prod-obnam.ick
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-26 15:23:00 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-26 15:23:00 +0200
commit415b709062da06919d90de48e21500a34e43acd4 (patch)
tree6109201ac40d523dd83e6e62e894b03cd8162039 /ci-prod-obnam.ick
parent8e0209033576e45aa891b2f1f4f6f369f35b88e3 (diff)
downloadliw-ci-415b709062da06919d90de48e21500a34e43acd4.tar.gz
build obnam.deb with rustup's rust
Diffstat (limited to 'ci-prod-obnam.ick')
-rw-r--r--ci-prod-obnam.ick27
1 files changed, 17 insertions, 10 deletions
diff --git a/ci-prod-obnam.ick b/ci-prod-obnam.ick
index ad6031d..07990b0 100644
--- a/ci-prod-obnam.ick
+++ b/ci-prod-obnam.ick
@@ -227,9 +227,10 @@ projects:
- ick/restore_workspace
- ick/get_sources
- rustup
-# - ick/install_debian_build_dependencies
+ - ick/install_debian_build_dependencies
+ - build_obnam_deb
# - ick/build_deb_ci
-# - ick/upload_debs
+ - ick/upload_debs
- ick/save_workspace
@@ -240,16 +241,22 @@ pipelines:
actions:
- where: container
shell: |
+
+ - pipeline: build_obnam_deb
+ actions:
+ - where: container
+ shell: |
export HOME=/workspace
export PATH="$HOME/.cargo/bin:$PATH"
- if [ ! -e "$HOME/.rustup" ]
- then
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
- sh rustup-init.sh -y
- fi
- rustup update
- rustup component add clippy
- rustup component add rustfmt
+
+ cd /workspace/src
+ name="$(dpkg-parsechangelog -S Source)"
+ version="$(dpkg-parsechangelog -S Version)"
+ upstream="$(echo "$version" | sed 's/-.*$//')"
+
+ git clean -fdxq
+ git archive HEAD | xz > "../${name}_${upstream}.orig.tar.xz"
+ dpkg-buildpackage -us -uc -sa || cat /tmp/subplot_*.diff.* 2>&1
- pipeline: build_obnam_and_docs
actions: