From 392a041d2efbfaa878cbf4b6c38c6259d9ecb127 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Wed, 12 Jun 2024 15:21:20 +1200 Subject: [PATCH] builds/debian: init build Replaces the old Arch Linux build. --- .builds/debian.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .builds/debian.yml diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 0000000..e4ac633 --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,34 @@ +--- +image: debian/unstable +packages: + - clang + - clang-format + - nix-bin + - nix-setup-systemd +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 + - format: | + cd callisto + make format + git diff --exit-code + - flake: | + nix build ./callisto