Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GH action to test RPM build on new PR commit #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Test build env

on: [push]

jobs:
call-test-rpm-build:
uses: xcp-ng-rpms/test-rpm-build/.github/workflows/test-rpm-build.yaml@create-reusable-workflow
13 changes: 13 additions & 0 deletions SOURCES/brs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git i/Makefile w/Makefile
index 0ac0d67a5..4e1c94343 100644
--- i/Makefile
+++ w/Makefile
@@ -81,7 +81,7 @@
scripts/install.sh 755 _build/install/default/bin/gencert $(DESTDIR)$(LIBEXECDIR)/gencert
# Libraries
dune install --profile=$(PROFILE) \
- xapi-client xapi-database xapi-consts xapi-cli-protocol xapi-datamodel xapi-types
+ xapi-client xapi-database xapi-consts xapi-cli-protocol xapi-datamodel xapi-types --verbose --debug-dependency-path
# docs
mkdir -p $(DESTDIR)$(DOCDIR)
cp -r $(XAPIDOC)/html $(DESTDIR)$(DOCDIR)
1 change: 1 addition & 0 deletions SPECS/xapi.spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Patch1007: xapi-1.249.9-update-schema-hash.XCP-ng.patch
Patch1008: xapi-1.249.9-fix-usb-device-reset.backport.patch
Patch1009: xapi-1.249.10-fix-web-dir-parameter.XCP-ng.patch
Patch1010: xapi-1.249.10-reenable-http-webpage.XCP-ng.patch
Patch1011: brs.patch

BuildRequires: ocaml-ocamldoc
BuildRequires: pam-devel
Expand Down