From 46f2f28da71d1038095763a76f038c0c5f0e13a9 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 22 Nov 2023 15:29:07 +0100 Subject: [PATCH] feat: add Packit integration Add a basic configuration for building PRs using Packit, using EL 8/9 and supported Fedora's. The actions are needed to do the "make srpm" way manually, which is what Copr does. Signed-off-by: Pino Toscano --- .packit.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .packit.yaml diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 00000000..7c208ffb --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,29 @@ +upstream_package_name: yggdrasil +downstream_package_name: yggdrasil +specfile_path: out/yggdrasil.spec + +srpm_build_deps: + - dnf + - gawk + - make + +actions: + post-upstream-clone: + - mkdir out + - env outdir=out make -f .copr/Makefile srpm + get-current-version: + - awk '/^Version:/ {print $2;}' out/yggdrasil.spec + create-archive: + - bash -c 'echo out/yggdrasil-*.tar.*' + fix-spec-file: + - echo 'nothing to fix' + +jobs: + - job: copr_build + trigger: pull_request + targets: + - centos-stream-8 + - centos-stream-9 + - fedora-all + - rhel-8 + - rhel-9