-
Notifications
You must be signed in to change notification settings - Fork 39
cd: publish rpm/deb packages on tag push #164
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
Conversation
/build folder will contain tmp files to build rpm/deb packages /packpack is a tool for building packages
7f8ea3b
to
2676e6a
Compare
2676e6a
to
c45bff4
Compare
63ec5a2
to
1ade115
Compare
@Totktonada many thanks for the help with Another issue is in --- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,6 @@
DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DEB_MAKE_CHECK_TARGET := luatest
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk Following the approach for |
At least until we'll package |
1ade115
to
d5b8f69
Compare
See dry run of building packages by introduced workflow here |
d5b8f69
to
f50e762
Compare
83ab5dc
to
32c5c2d
Compare
b10ae75
to
9f8f30a
Compare
3fd6017
to
37341c1
Compare
Starting with fedora 33, the cmake build strategy has been changed to "out-of-source builds" by default (see [1]). Let's add support for the new behavior. Added `prebuild.sh` script with installation of Tarantool repo. `Packpack` performs building rpm packages in a clean docker container. The container must contain `luatest` to perform testing during the build as it was set by `-DCMAKE_BUILD_TYPE=RelWithDebInfo` cmake var. This cmake var was removed in this commit as well as `%check` phase. It's quite challenging to set up `luacheck` while the package is building and a bit useless because the module is tested in another job. [1] https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds Closes #165
37341c1
to
31df980
Compare
`Packpack` installs dependencies using default apt repo. To provide the latest version of Tarantool 1.10 (the latest of the lower supported version), `prebuild.sh` script wich installs Tarantool repo was added to debian spec folder.
`Packpack` performs building rpm packages in a clean docker container. The container must contain `luatest` to perform testing during the build as it was set by `-DEB_MAKE_CHECK_TARGET := luatest` variable. It's quite challenging to set up `luacheck` while the package is building and a bit useless because the module is tested in another job. This commit removes testing http module during the build by `packpack`.
602c34d
to
6291dad
Compare
@Totktonada please review updated PR with resolving conversations if you are satisfied by the changes or answers. |
4da3152
to
19a28bf
Compare
08097f6
to
b66289b
Compare
.github/workflows/packaging.yml
Outdated
- { os: 'ubuntu', dist: 'bionic' } | ||
- { os: 'ubuntu', dist: 'focal' } | ||
- { os: 'ubuntu', dist: 'groovy' } | ||
- { os: 'ubuntu', dist: 'hirsute' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is red here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fails caused by disabling Ubuntu repositories of EOL hisrute and impish. @0x501D, can I remove these OS versions from the workflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I see no reason to run CI on EOL distributions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with current state of the PR aside of two remaining comments. Let's fix them and take my approve.
Please, proceed with Leonid for further steps.
b66289b
to
e440fa5
Compare
This workflow is intended to run on a tag push for creating and deploying module packages to S3 based repositories. Closes #163
e440fa5
to
7a118a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
81aa7f9
to
7a118a8
Compare
- { os: 'ubuntu', dist: 'xenial' } | ||
- { os: 'ubuntu', dist: 'bionic' } | ||
- { os: 'ubuntu', dist: 'focal' } | ||
- { os: 'ubuntu', dist: 'groovy' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ubuntu Groovy 20.10 is EOL
Implement GitHub Actions job which will publish rpm and deb packages for maintained operation systems.
The new workflow (packaging.yml) is intended to run on a tag push
for creating and deploying module packages to S3 based repositories.
Unfortunately,
Packpack
couldn't start without modification the httprepo.
Packpack
performs building rpm packages in a clean docker container.The container must contain
luatest
to perform testing during thebuild as it was set by
-DEB_MAKE_CHECK_TARGET := luatest
variable.It's quite challenging to set up
luacheck
while the package isbuilding and a bit useless because the module is tested in another job.
Added
prebuild.sh
script for bothrpm
anddebian
withinstallation of Tarantool repo.
Another issue is "out-of-source build" failure.
Starting with fedora 33, the
cmake
build strategy has been changedto "out-of-source builds" by default (see [1]). Let's add support
for the new behaviour.