Skip to content

Commit

Permalink
feat: add Packit integration
Browse files Browse the repository at this point in the history
Add a basic configuration for building PRs using Packit, using EL 8/9
and supported Fedora's.

The actions perform a similar, although easier, steps of what is done
with "make srpm" (which is what Copr does): this way we can avoid the
package installations, and we can copy all the files needed.

Signed-off-by: Pino Toscano <[email protected]>
  • Loading branch information
ptoscano committed Nov 22, 2023
1 parent 818d654 commit 07f2cf2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
upstream_package_name: yggdrasil
downstream_package_name: yggdrasil
specfile_path: out/yggdrasil.spec

srpm_build_deps:
- bash-completion
- gawk
- git-core
- golang
- meson
- 'pkgconfig(dbus-1)'
- 'pkgconfig(systemd)'
- rpm-build

actions:
post-upstream-clone:
- mkdir out
- meson setup builddir -Dbuild_srpm=True -Dvendor=True -Dexamples=True
- meson compile srpm -C builddir
- bash -c 'mv builddir/dist/srpm/* out/'
get-current-version:
- awk '/^Version:/ {print $2;}' out/yggdrasil.spec
create-archive:
- bash -c 'echo out/yggdrasil-*.tar.*'
create-patches:
- echo 'nothing to patch'
fix-spec-file:
- echo 'nothing to fix'
changelog-entry:
- echo 'no changelog'

jobs:
- job: copr_build
trigger: pull_request
targets:
- centos-stream-8
- centos-stream-9
- fedora-all
- rhel-8
- rhel-9

0 comments on commit 07f2cf2

Please sign in to comment.