A .builds/nixos.yml => .builds/nixos.yml +27 -0
@@ 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