Debian Codegraph @

.builds/sid.yml

raw
1 # SPDX-License-Identifier: 0BSD
2 image: debian/sid
3 secrets:
4 - f226accf-2ed4-4d94-ab0e-35f195dd8273 # ossp-uuid SSH key
5 packages:
6 - clang
7 - lld
8 - perl
9 - autoconf
10 - automake
11 - libtool
12 - libmd-dev
13 - groff
14 - ghostscript
15 tasks:
16 - autoreconf: |
17 autoreconf -fi ossp-uuid
18 mkdir -p ossp-uuid/gcc ossp-uuid/clang
19 - build-gcc: |
20 cd ossp-uuid/gcc
21 ../configure --with-cxx --with-dce --with-perl --with-perl-compat
22 make
23 make check
24 make distclean
25 - build-clang: |
26 cd ossp-uuid/clang
27 ../configure --with-cxx --with-dce --with-perl --with-perl-compat CC=clang CXX=clang++ LDFLAGS=-fuse-ld=lld
28 make
29 make check
30 - install: |
31 sudo make -C ossp-uuid/clang install
32 - manual: |
33 sudo sh -c 'curl https://ra.ws.co.ls/~nabijaczleweli/groff-1.23-unfucking/blob/trunk/mdoc.local >> /etc/groff/mdoc.local'
34 git -C ossp-uuid/ worktree add ../ossp-uuid-man man
35 cd ossp-uuid-man
36 git ls-tree -z --name-only HEAD | xargs -0 rm -r
37 rm -rf ../ossp-uuid/autom4te.cache
38 find ../ossp-uuid -name '*.[1-8]' -exec cp -vt . {} +
39 find ../ossp-uuid -name '*.[1-8]perl' -exec cp -vt . {} + || :
40 sed -e 's/…/.../g' $(printf '%s\n' *.[0-8]* | awk -F. '{print substr($2, 2) "\t" $2 "\t" $0}' | tr - _ | sort | tr _ - | cut -f3) | groff -K utf8 -tpe -mdoc -Tps -dpaper=a4 -P-pa4 > ossp-uuid.ps
41 ps2pdf ossp-uuid.ps ossp-uuid.pdf
42 git add .
43 git config user.email "nabijaczleweli/[email protected]"
44 git config user.name "наб autouploader"
45 git commit -m "Manpage update by job $JOB_ID" || exit 0
46 git remote set-url origin '[email protected]:~nabijaczleweli/ossp-uuid'
47 ssh-keyscan git.sr.ht > ~/.ssh/known_hosts
48 git push
49 # - void: |
50 # curl https://repo-default.voidlinux.org/live/current/sha256sum.txt | grep -w tar | grep -w x86_64 | grep -m1 musl > sha256sum.txt
51 # curl -SL https://repo-default.voidlinux.org/live/current/"$(awk -F'[( )]' '{print $3}' < sha256sum.txt)" | tar -xJ
52 # cp /etc/resolv.conf etc
53 # printf '%s\n' 'xbps-install -yS' \
54 # 'xbps-install -yu xbps' \
55 # 'xbps-install -y make gcc pkgconf fuse3-devel libcurl-devel' \
56 # 'mount -t devtmpfs devtmpfs /dev' \
57 # 'make -C ossp-uuid clean' \
58 # 'make -C ossp-uuid VERSION=sid.yml SOURCE_DATE_EPOCH=0 all check' \
59 # 'make -C ossp-uuid install' |
60 # sudo chroot . sh -ex