summaryrefslogtreecommitdiff
path: root/.build.yml
blob: 0cbd54983c881142d37019bad76bbd5552bf6059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Ref: https://man.sr.ht/builds.sr.ht/
sources:
  - https://git.sr.ht/~lukeshu/btrfs-ng

image: archlinux
packages:
  - go
  - make
tasks:
  - lint: make -C btrfs-ng lint
  - check: make -C btrfs-ng check
  - generate: |
      cd btrfs-ng
      make generate
      git add .
      if [[ -n "$(git status --porcelain)" ]]; then
        PAGER= git diff --cached
        exit 1
      fi