---
build:
  image: buildpack-deps:bullseye
  before_script:
    - apt-get update
    - apt-get install -y meson golang systemd podman go-md2man bash-completion shellcheck cmake
    - git clone https://github.com/containers/toolbox.git
    - cd toolbox
  script:
    - meson -Dprofile_dir=/etc/profile.d builddir
    - ninja -C builddir
  artifacts:
    paths:
      - toolbox/builddir/src/toolbox
      - toolbox/builddir/doc/
      - toolbox/builddir/meson-logs/
      - toolbox/builddir/.ninja_log
