openstreetmap / mod_tile

Renders map tiles with mapnik and serves them using apache
http://wiki.openstreetmap.org/wiki/Mod_tile
GNU General Public License v2.0
288 stars 191 forks source link

Build Debian and Ubuntu deb packages on release #466

Open Firefishy opened 2 weeks ago

Firefishy commented 2 weeks ago

It would be great if when tagging a new releases new deb packages were build.

We've just added this for openstreetmap-cgimap. https://github.com/zerebubuth/openstreetmap-cgimap/pull/449 and https://github.com/zerebubuth/openstreetmap-cgimap/blob/master/.github/workflows/build.yml Also in PR for osmdbt.

I am happy to create a PR if desired?

hummeltech commented 2 weeks ago

Hello @Firefishy, I think that's a great idea. Packaging already occurs on every commit for CMake builds, these are basic, but can be used for testing.

E.g.: https://github.com/openstreetmap/mod_tile/blob/f645ed0a1e039082f839e96742e1d0d3c6b7f02a/.github/workflows/build-and-test.yml#L91-L93

More robust packaging can also be achieved using CPack, but that wasn't the goal I had of creating packages for testing purposes. Let me know if you have any suggestions. Thanks!

hummeltech commented 2 weeks ago

Here's an example of packages built here from the latest commit:

mod_tile-5aadf31ccc2f2f7ed820fdb665ff023629c4f733-debian_11-CMake-GNU mod_tile-5aadf31ccc2f2f7ed820fdb665ff023629c4f733-debian_12-CMake-GNU

mod_tile-5aadf31ccc2f2f7ed820fdb665ff023629c4f733-ubuntu_22_04-CMake-GNU mod_tile-5aadf31ccc2f2f7ed820fdb665ff023629c4f733-ubuntu_24_04-CMake-GNU

mod_tile-5aadf31ccc2f2f7ed820fdb665ff023629c4f733-quay_io_centos_centos_stream9-CMake-GNU