aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker.yml
blob: 6deff5b1214db030e20a9eef4b531e3b1713da1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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-*