distributable:
  url: git+https://github.com/lycheeverse/lychee.git
  ref: ${{version.tag}}

versions:
  github: lycheeverse/lychee

dependencies:
  openssl.org: '>=1.1'

build:
  dependencies:
    rust-lang.org: ^1.65
    rust-lang.org/cargo: '*'
  script:
    - cargo install $ARGS
  env:
    ARGS:
      - --locked
      - --root={{prefix}}
      - --path=lychee-bin

provides:
  - bin/lychee

test:
  - lychee test.md | grep '0 Errors'
  - lychee --version | grep {{version}}