From 166d74649afee86b7b8112dcd4fdada10b493950 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 20 Mar 2024 17:45:09 +0100 Subject: woodpecker CI --- .woodpecker.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .woodpecker.yml (limited to '.woodpecker.yml') 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-* -- cgit v1.2.3