From 1d6a713d5ae12bd479238e1e194e4cde64fc1774 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Thu, 29 Feb 2024 16:56:48 +1300 Subject: [PATCH] builds: initialise Initialise builds.sr.ht CI to build for Alpine Linux, Arch Linux and OpenBSD. Building for Arch will also test the Nix flake builds. --- .builds/alpine.yml | 21 +++++++++++++++++++++ .builds/archlinux.yml | 28 ++++++++++++++++++++++++++++ .builds/openbsd.yml | 20 ++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .builds/alpine.yml create mode 100644 .builds/archlinux.yml create mode 100644 .builds/openbsd.yml diff --git a/.builds/alpine.yml b/.builds/alpine.yml new file mode 100644 index 0000000..af68c27 --- /dev/null +++ b/.builds/alpine.yml @@ -0,0 +1,21 @@ +--- +image: alpine/edge +packages: + - clang + - gcc +sources: + - "https://git.sr.ht/~jeremy/callisto" +tasks: + - build-clang: | + cd callisto + ./configure -c clang + make + make clean + - build-gcc: | + cd callisto + ./configure -c gcc + make + - install: | + sudo make -Ccallisto install + - test: | + csto callisto/test.lua diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml new file mode 100644 index 0000000..d3e273c --- /dev/null +++ b/.builds/archlinux.yml @@ -0,0 +1,28 @@ +--- +image: archlinux +packages: + - clang + - nix +sources: + - "https://git.sr.ht/~jeremy/callisto" +tasks: + - prepare: | + printf 'experimental-features = nix-command flakes\n' \ + | sudo tee -a /etc/nix/nix.conf + sudo systemctl start nix-daemon + sudo usermod -aG nix-users build + - build-clang: | + cd callisto + ./configure -c clang + make + make clean + - build-gcc: | + cd callisto + ./configure -c gcc + make + - install: | + sudo make -Ccallisto install + - test: | + csto callisto/test.lua + - flake: | + nix build ./callisto diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml new file mode 100644 index 0000000..5b3be24 --- /dev/null +++ b/.builds/openbsd.yml @@ -0,0 +1,20 @@ +--- +image: openbsd/latest +packages: + - gcc-11.2.0p9 +sources: + - "https://git.sr.ht/~jeremy/callisto" +tasks: + - build-clang: | + cd callisto + ./configure -c clang + make + make clean + - build-gcc: | + cd callisto + ./configure -c egcc + make + - install: | + doas make -Ccallisto install + - test: | + csto callisto/test.lua