Makko, the people-oriented static site generator made for blogging. forge.starlightnet.work/Team/Makko
ssg static-site-generator makko starlight-network

CD: Add FreeBSD build #2

merged opened by lunyav.tngl.sh targeting main from lunyav.tngl.sh/Makko: main

Since older versions of zig are not available on all systems it can be useful to have prebuilt binaries of a variety of systems

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:tkvjnvpgdd2pmi4gfeiyybf6/sh.tangled.repo.pull/3metzlundfi22
+8
Diff #1
+8
.forgejo/build.fish
··· 24 24 _upx zig-out/bin/makko -o build/makko-x86_64-linux 25 25 end 26 26 27 + function build-x86_64-freebsd 28 + echo "building x86_64 targeting athlon64, FreeBSD" 29 + zig_build -Dtarget=x86_64-freebsd -Dcpu=athlon64 30 + _upx zig-out/bin/makko -o build/makko-x86_64-freebsd 31 + end 32 + 27 33 function build-aarch64-linux 28 34 echo "building aarch64, musl-linux-static" 29 35 zig_build -Dtarget=aarch64-linux-musl ··· 49 55 end 50 56 51 57 switch $argv 58 + case build-x86_64-freebsd 59 + build-x86_64-freebsd 52 60 case build-x86_64-linux 53 61 build-x86_64-linux 54 62 case build-aarch64-linux

History

2 rounds 9 comments
sign up or login to add to the discussion
1 commit
expand
CD: Add FreeBSD build
expand 1 comment

looks good! sorry for the late review, will merge

do note that CI currently isn't running as The TSN Phoneβ„’ that we (ab)use for this is down. You can see status at any time at https://status.starlightnet.work

For releases, I build by hand.

pull request successfully merged
1 commit
expand
CD: Add FreeBSD build
expand 8 comments

Noted something very odd cross-compiling for FreeBSD does seem to work, but compiling it on a FreeBSD does fail because zigmon does seem to not support it.

Noted something very odd cross-compiling for FreeBSD does seem to work, but compiling it on a FreeBSD does fail because zigmon does seem to not support it.

I did open a PR to support dmon on FreeBSD: https://github.com/septag/dmon/pull/42/changes

oh that's a bit unfortunate.

For the record, line 59 still references the linux build function. it should call build-x86_64-freebsd instead.

I should really refactor this script, lol

oh that's a bit unfortunate.

For the record, line 59 still references the linux build function. it should call build-x86_64-freebsd instead.

I should really refactor this script, lol

oh that's a bit unfortunate.

For the record, line 59 still references the linux build function. it should call build-x86_64-freebsd instead.

I should really refactor this script, lol

love when things multi-send

zigmon now just needs to update their dmon dependency then it should work flawlessly.