aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-20 17:45:09 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-20 17:45:09 +0100
commit166d74649afee86b7b8112dcd4fdada10b493950 (patch)
tree1b43b337b4e21d889e179f40eb1a1fbed8d1c997 /.woodpecker.yml
parent58ac0e37587553db567f75c7efacd103059a030a (diff)
downloaddiplonat-woodpecker-ci.tar.gz
diplonat-woodpecker-ci.zip
woodpecker CIwoodpecker-ci
Diffstat (limited to '.woodpecker.yml')
-rw-r--r--.woodpecker.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml
new file mode 100644
index 0000000..6deff5b
--- /dev/null
+++ b/.woodpecker.yml
@@ -0,0 +1,26 @@
+when:
+ event:
+ - push
+ - pull_request
+ - tag
+ - cron
+ - manual
+
+steps:
+ - name: check formatting
+ image: nixpkgs/nix:nixos-22.05
+ environment:
+ NIX_PATH: 'nixpkgs=channel:nixos-22.05'
+ commands:
+ - nix-shell -p cargo -p rustfmt --run 'cargo fmt -- --check'
+
+ - name: build
+ image: nixpkgs/nix:nixos-22.05
+ commands:
+ - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#debug.x86_64-linux.diplonat
+
+ - name: test
+ image: nixpkgs/nix:nixos-22.05
+ commands:
+ - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.diplonat
+ - ./result-bin/bin/diplonat-*