From 38cb1986f07c51c891e30d2d591af9cb90612895 Mon Sep 17 00:00:00 2001 From: Philipp Riegger Date: Sat, 21 Mar 2020 17:25:25 +0100 Subject: [PATCH] wip --- .builds/nixos.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .builds/nixos.yml diff --git a/.builds/nixos.yml b/.builds/nixos.yml new file mode 100644 index 0000000..d12696e --- /dev/null +++ b/.builds/nixos.yml @@ -0,0 +1,27 @@ +image: nixos/latest +repositories: + nixpkgs: https://nixos.org/channels/nixos-unstable + priegger-nur-packages: https://git.sr.ht/~priegger/nur-packages/archive/master.tar.gz +packages: + - nixpkgs.go + - priegger-nur-packages.annotatego +sources: + - https://git.sr.ht/~priegger/go-hello-world +environment: + CGO_ENABLED: 0 +tasks: + - build: | + cd go-hello-world + go build -v + - test: | + cd go-hello-world + go test + - deploy: | + cd go-hello-world + tar -cJf go-hello-world.tar.xz go-hello-world + - annotate: | + cd go-hello-world + annotatego -v ... > annotations.json +artifacts: + - go-hello-world/go-hello-world.tar.xz + - go-hello-world/annotations.json -- 2.45.2