~leon_plickat/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH nfm v2] Add CI builds

Details
Message ID
<20220405082328.7215-1-mail@hmachet.com>
DKIM signature
pass
Download raw message
Patch: +67 -0
---
v1 -> v2:
Add freebsd build, even if nfm doesn't build on it yet. Feel free to remove
arch or alpine if you have a preference for glibc or musl.

 .builds/alpine.yml    | 23 +++++++++++++++++++++++
 .builds/archlinux.yml | 22 ++++++++++++++++++++++
 .builds/freebsd.yml   | 22 ++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 .builds/alpine.yml
 create mode 100644 .builds/archlinux.yml
 create mode 100644 .builds/freebsd.yml

diff --git a/.builds/alpine.yml b/.builds/alpine.yml
new file mode 100644
index 000000000000..adab7c86c96b
--- /dev/null
+++ b/.builds/alpine.yml
@@ -0,0 +1,23 @@
image: alpine/edge
packages:
  - wget
  - xz
sources:
  - https://git.sr.ht/~leon_plickat/nfm
tasks:
  - install_deps: |
      # Remove a lot of useless lines from wget and tar output.
      wget -q https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz
      tar -xvf zig-linux-x86_64-0.9.1.tar.xz 1>/dev/null
      sudo mv zig-linux-x86_64-0.9.1/zig /usr/bin/
      sudo mv zig-linux-x86_64-0.9.1/lib /usr/lib/zig
  - build: |
      cd nfm
      zig build
  - test: |
      cd nfm
      zig build test
  - fmt: |
      cd nfm
      zig fmt --check src/
      zig fmt --check build.zig
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml
new file mode 100644
index 000000000000..55baa86744e5
--- /dev/null
+++ b/.builds/archlinux.yml
@@ -0,0 +1,22 @@
image: archlinux
packages:
  - wget
sources:
  - https://git.sr.ht/~leon_plickat/nfm
tasks:
  - install_deps: |
      # Remove a lot of useless lines from wget and tar output.
      wget -q https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz
      tar -xvf zig-linux-x86_64-0.9.1.tar.xz 1>/dev/null
      sudo mv zig-linux-x86_64-0.9.1/zig /usr/bin/
      sudo mv zig-linux-x86_64-0.9.1/lib /usr/lib/zig
  - build: |
      cd nfm
      zig build
  - test: |
      cd nfm
      zig build test
  - fmt: |
      cd nfm
      zig fmt --check src/
      zig fmt --check build.zig
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
new file mode 100644
index 000000000000..beb2dfd744f9
--- /dev/null
+++ b/.builds/freebsd.yml
@@ -0,0 +1,22 @@
image: freebsd/latest
packages:
  - wget
sources:
  - https://git.sr.ht/~leon_plickat/nfm
tasks:
  - install_deps: |
      # Remove a lot of useless lines from wget and tar output.
      wget -q https://ziglang.org/download/0.9.1/zig-freebsd-x86_64-0.9.1.tar.xz
      tar -xvf zig-freebsd-x86_64-0.9.1.tar.xz 1>/dev/null
      sudo mv zig-freebsd-x86_64-0.9.1/zig /usr/bin/
      sudo mv zig-freebsd-x86_64-0.9.1/lib /usr/lib/zig
  - build: |
      cd nfm
      zig build
  - test: |
      cd nfm
      zig build test
  - fmt: |
      cd nfm
      zig fmt --check src/
      zig fmt --check build.zig
-- 
2.35.1
Reply to thread Export thread (mbox)