commit 8b7c7e05253231f5025606b1af719655d4ee9f3a
parent 71a460aebe99b38eea5923a6aed9aea8e1eda10b
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 25 Oct 2021 12:59:26 +0200
.builds: add FreeBSD
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
3 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/.build.yml b/.builds/alpine.yml
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
@@ -0,0 +1,29 @@
+image: freebsd/latest
+sources:
+- https://git.sr.ht/~sircmpwn/hare
+- https://git.sr.ht/~sircmpwn/harec
+- https://git.sr.ht/~sircmpwn/qbe
+packages:
+- binutils
+- gmake
+tasks:
+- qbe: |
+ cd qbe
+ gmake PREFIX=/usr
+ sudo gmake install PREFIX=/usr
+- harec: |
+ mkdir harec/build
+ cd harec/build
+ ../configure --prefix=/usr
+ make -j2
+ sudo make install
+- hare: |
+ cd hare
+ sed -e 's/linux/freebsd/g' < config.example.mk > config.mk
+ gmake
+- tests: |
+ cd hare
+ gmake .bin/hare-tests
+- check: |
+ cd hare
+ gmake check
diff --git a/README.md b/README.md
@@ -1,4 +1,4 @@
-# The Hare programming language [![builds.sr.ht status](https://builds.sr.ht/~sircmpwn/hare/commits.svg)](https://builds.sr.ht/~sircmpwn/hare/commits?)
+# The Hare programming language
Hare is a systems programming language and **a work-in-progress**.
@@ -19,6 +19,13 @@ more mature.
Ask in the IRC channel to get access to the private bug tracker and mailing
lists.
+## Build status
+
+<dl>
+ <dt>Linux (x86_64)</dt><dd><a href="https://builds.sr.ht/~sircmpwn/hare/commits/alpine.yml"><img src="https://builds.sr.ht/~sircmpwn/hare/commits/alpine.yml.svg" alt="Build status for Linux" /></a></dd>
+ <dt>FreeBSD (x86_64)</dt><dd><a href="https://builds.sr.ht/~sircmpwn/hare/commits/freebsd.yml"><img src="https://builds.sr.ht/~sircmpwn/hare/commits/freebsd.yml.svg" alt="Build status for FreeBSD" /></a></dd>
+</dl>
+
## Installation
For information about bootstrapping a working Hare toolchain from scratch, see