arch: null artifacts: null environment: BUILD_REASON: patchset BUILD_SUBMITTER: hub.sr.ht PATCHSET_ID: 55460 PATCHSET_URL: https://lists.sr.ht/~sircmpwn/hare-dev/patches/55460 image: alpine/latest oauth: pages.sr.ht/PAGES:RW packages: - scdoc repositories: null secrets: null shell: null sources: - git://c9x.me/qbe.git - https://git.sr.ht/~sircmpwn/harec - https://git.sr.ht/~sircmpwn/hare tasks: - _apply_patch: 'echo Applying patch from lists.sr.ht git config --global user.name ''builds.sr.ht'' git config --global user.email builds@sr.ht cd hare curl -sS https://lists.sr.ht/~sircmpwn/hare-dev/patches/55460/mbox >/tmp/55460.patch git am -3 /tmp/55460.patch' - environment: "cd hare\nif [ \"$BUILD_SUBMITTER\" = \"git.sr.ht\" ]\nthen\n if [\ \ \"$GIT_REF\" != \"refs/heads/master\" ]\n then\n complete-build\n fi\n\ \ if [ \"$(git remote get-url origin)\" != \"https://git.sr.ht/~sircmpwn/hare\"\ \ ]\n then\n complete-build\n fi\nfi" - signoff: "cd hare\nif [ \"$BUILD_REASON\" = \"patchset\" ]\nthen\n if ! git log\ \ --format='%b' origin/master^^.. | grep 'Signed-off-by' >/dev/null\n then\n\ \ echo \"Patch missing Signed-off-by\"\n exit 1\n fi\nfi" - qbe: 'cd qbe make -j2 PREFIX=/usr sudo make install PREFIX=/usr' - harec: 'cd harec cp configs/linux.mk config.mk make -j2 sudo make install' - hare: 'cd hare cp configs/linux.mk config.mk make -j2 sudo make install' - check: 'cd hare make -j2 check' - check_with_libc: 'cd hare hare test -lc' - parsechk: 'cd hare hare run cmd/parsechk' - lint: 'cd hare ./scripts/lint.sh' - bootstrap: "cd hare\nmake -j2 bootstrap\nif [ -n \"$(git status --porcelain)\" ]\n\ then\n echo \"bootstrap makefiles out of date, run make bootstrap to regenerate\"\ \n exit 1\nfi" - genoiddb: "cd hare\nhare run cmd/genoiddb < encoding/asn1/stdoid/db.txt > encoding/asn1/stdoid/db.ha\n\ if [ -n \"$(git status --porcelain)\" ]\nthen\n echo \"Either encoding/asn1/stdoid/db.ha\ \ is out of date or something broke genoiddb\"\n exit 1\nfi" - docs: "cd hare\nmake docs/html\ntar -C docs/html -cvz . > docs.tar.gz\nif [ $BUILD_SUBMITTER\ \ != \"git.sr.ht\" ]\nthen\n echo \"Not uploading docs for non-git.sr.ht build\"\ \n exit\nfi\nacurl -f https://pages.sr.ht/publish/docs.harelang.org -Fcontent=@docs.tar.gz\ \ || true" triggers: - action: email condition: failure to: <~sircmpwn/hare-dev@lists.sr.ht> - action: webhook condition: always url: https://sr.ht/webhooks/build-complete/gAAAAABnCyNUhi7ims9YqIWd2bFMOuP0k-hg_eXZtTZayw78OCvSREhE0eYfdoxPHbsWjbg7TUyzMRfHzddAnfehhiI2USDkGXGo_qSBgs-2e1zw6gaZMqisTUHVXg7ZEOB0LQn-3zreC31jtHScmWv6W1bHp641y5PaIYur69mYfH6NenX79YbNYnHzNupI5sN_j-opdu8u6KH5zAx6sjNW67CMcs6ACA%3D%3D