~sbinet/star-tex-patches

star-tex: ci: add build for Linux v1 PROPOSED

Sebastien Binet: 1
 ci: add build for Linux

 2 files changed, 32 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sbinet/star-tex-patches/patches/20303/mbox | git am -3
Learn more about email & git

[PATCH star-tex] ci: add build for Linux Export this patch

Signed-off-by: Sebastien Binet <s@sbinet.org>
---
 .builds/linux.yml | 30 ++++++++++++++++++++++++++++++
 README.md         |  2 ++
 2 files changed, 32 insertions(+)
 create mode 100644 .builds/linux.yml

diff --git a/.builds/linux.yml b/.builds/linux.yml
new file mode 100644
index 0000000..2727b1e
--- /dev/null
+++ b/.builds/linux.yml
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: Unlicense OR MIT
image: debian/testing
packages:
 - curl
 - unzip
sources:
 - https://git.sr.ht/~sbinet/star-tex
environment:
 GOFLAGS: -mod=readonly
 PATH: /home/build/sdk/go/bin:/usr/bin:/home/build/go/bin
tasks:
 - install_go1_15: |
     mkdir -p /home/build/sdk
     curl https://dl.google.com/go/go1.15.linux-amd64.tar.gz | tar -C /home/build/sdk -xzf -
 - test_star_tex: |
     cd star-tex
     go test -race ./...
  - check_gofmt: |
     cd star-tex
     test -z "$(gofmt -s -l .)"
 - check_sign_off: |
     set +x -e
     cd star-tex
     for hash in $(git log -n 20 --format="%H"); do
        message=$(git log -1 --format=%B $hash)
        if [[ ! "$message" =~ "Signed-off-by: " ]]; then
            echo "Missing 'Signed-off-by' in commit $hash"
            exit 1
        fi
     done
diff --git a/README.md b/README.md
index 6d9c32b..204463c 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# star-tex

[![builds.sr.ht status](https://builds.sr.ht/~sbinet/star-tex.svg)](https://builds.sr.ht/~sbinet/star-tex?)

`star-tex` (or `*TeX`) is a TeX engine in Go.

## cmd/star-tex
-- 
2.30.1