arch: null artifacts: [] environment: BUILD_SUBMITTER: git.sr.ht image: debian/sid packages: - clang - lld - llvm-dev - shellcheck - curl - bc - pkgconf - libacl1-dev - libb2-dev - libssl-dev - libselinux-dev - zlib1g-dev - cvs repositories: {} secrets: - ddeb8ace-1c12-4ce9-b0e3-a6f2cd48c4ef - ae6210b1-b37d-4f6c-9828-3e83c3a684a4 shell: false sources: - https://git.sr.ht/~nabijaczleweli/voreutils#198cc3a3a5bc3d1ce2411e5d941431ff48fa2d9e tasks: - install-mandoc: | ssh-keyscan mandoc.bsd.lv >> ~/.ssh/known_hosts cvs -d anoncvs@mandoc.bsd.lv:/cvs co mandoc cd mandoc # https://bugs.debian.org/1022809 curl -SL https://sources.debian.org/data/main/m/mdocml/1.14.6-1/debian/patches/configure.local.patch | sed -e '/^@@/s/19/18/' -e '/INSTALL_MAN/d' | patch -p1 ./configure make sudo make install - build-gcc: | cd voreutils make script -qec 'rm -f /tmp/ok; make test && > /tmp/ok' /dev/null | stdbuf -oL tr -d '\r'; [ -e /tmp/ok ] nm -D $(du out/cmd/* | cut -f2) 2>/dev/null | grep -e : -e XX | awk '/:$/ {nm=$0} !/:$/{if(nm) print nm; nm=""; print}' | grep -c : make clean - build-clang: | export CC=clang CXX=clang++ LDFLAGS=-fuse-ld=lld cd voreutils make script -qec 'rm -f /tmp/ok; make test && > /tmp/ok' /dev/null | stdbuf -oL tr -d '\r'; [ -e /tmp/ok ] nm -D $(du out/cmd/* | cut -f2) 2>/dev/null | grep -e : -e XX | awk '/:$/ {nm=$0} !/:$/{if(nm) print nm; nm=""; print}' | grep -c : make clean - push-manpages: | git -C voreutils/ worktree add ../voreutils-man man rm -rf voreutils-man/* MANDIR=../voreutils-man/ HTMLMANDIR=../voreutils-man/ make -C voreutils allpages VOREUTILS_VERSION="$(git describe --abbrev=0 2>/dev/null || echo pre-v0.0.0)-latest" cd voreutils-man/ git add . git config user.email "nabijaczleweli/autouploader@nabijaczleweli.xyz" git config user.name "наб autouploader" git remote set-url origin 'git@git.sr.ht:~nabijaczleweli/voreutils' ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts git commit -m "Manpage update by job $JOB_ID" || exit 0 while true; do git push && break for _ in $(seq 10); do sleep 3 git fetch git rebase git push && break 2 done echo "Couldn't push manpages!" exit 1 done - upload-release: | tag="$(git -C voreutils describe --abbrev=0 --tags || echo HEAD~1)" [ "$(git -C voreutils rev-list -n1 "$tag")" = "$(git -C voreutils rev-list -n1 HEAD)" ] || exit 0 mkdir "voreutils-$tag-man" mv voreutils-man/* "voreutils-$tag-man" tar -caf "voreutils-$tag-man.tbz2" "voreutils-$tag-man" sha256sum --tag *.tbz2 set +x # Avoid echoing the token for f in *.tbz2; do curl -H "Authorization: Bearer $(cat ~/.release-token)" \ -XPOST \ -F "file=@$f" \ "https://git.sr.ht/api/repos/voreutils/artifacts/$tag" echo done triggers: [] oauth: ""