# This matrix definition is used as both the package_build_rules and the
# package_test_rules Ploutos packaging workflow inputs.
---
pkg:
  - "rtrtr"
image:
  - "ubuntu:xenial"   # ubuntu/16.04
  - "ubuntu:bionic"   # ubuntu/18.04
  - "ubuntu:focal"    # ubuntu/20.04
  - "ubuntu:jammy"    # ubuntu/22.04
  - "debian:stretch"  # debian/9
  - "debian:buster"   # debian/10
  - "debian:bullseye" # debian/11
  - "debian:bookworm" # debian/12
  - 'centos:7'
  - 'rockylinux:8'    # compatible with EOL centos:8
  - 'rockylinux:9'
target:
  - 'x86_64'
test-image:
  - ""
include:
  - image: "centos:7"
    systemd_service_unit_file: pkg/common/rtrtr-minimal.rtrtr.service

  - image: 'rockylinux:8'
    systemd_service_unit_file: pkg/common/rtrtr.rtrtr.service

  - image: 'rockylinux:9'
    systemd_service_unit_file: pkg/common/rtrtr.rtrtr.service

  - pkg: "rtrtr"
    image: 'debian:bullseye'
    target: 'armv7-unknown-linux-musleabihf'

  - pkg: 'rtrtr'
    image: 'debian:buster'
    target: 'arm-unknown-linux-musleabihf'

  - pkg: 'rtrtr'
    image: 'rockylinux:9'
    target: 'x86_64'
    test-image: 'almalinux:9'

  - pkg: 'rtrtr'
    image: 'rockylinux:9'
    target: 'x86_64'
    test-image: 'centos:9-Stream'

test-mode:   
  - 'fresh-install'
  - 'upgrade-from-published'

test-exclude:
  - pkg: 'rtrtr'
    image: 'rockylinux:9'
    mode: 'upgrade-from-published'
  - pkg: 'rtrtr'
    image: 'debian:bookworm'
    mode: 'upgrade-from-published'

