~leon_plickat/public-inbox

nfm: Add CI alpine and archlinux builds v1 SUPERSEDED

Hugo Machet: 1
 Add CI alpine and archlinux builds

 2 files changed, 45 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/~leon_plickat/public-inbox/patches/30790/mbox | git am -3
Learn more about email & git

[PATCH nfm] Add CI alpine and archlinux builds Export this patch

---
I also have a freebsd one, but nfm  doesn't build on it[0].

Let me know if you want that I add/remove some images.

[0]: https://builds.sr.ht/~novakane/job/729612#task-build

 .builds/alpine.yml    | 23 +++++++++++++++++++++++
 .builds/archlinux.yml | 22 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 .builds/alpine.yml
 create mode 100644 .builds/archlinux.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
-- 
2.35.1