google / google/googletest

[FR]: Create Packages on every release (Debian, RPM, etc.)

Open
#4,686 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

### Does the feature exist in the most recent commit?

No

### Why do we need this feature?

This feature would make it easier for anyone to download the latest Debian/RPM package from GitHub rather than have to compile it.

Also, the current versions of GoogleTest, while functional are old (v1.11.0 is from June 2021)
![Image](https://github.com/user-attachments/assets/297df38b-7f44-42b4-96c9-d19fb06867ba)

This would also make it easy for consistently having Debian/Ubuntu repositories updated if a package is generated each release.

### Describe the proposal.

I think the easiest solution would be to create a CPackConfig.txt to leverage your CMakeLists.txt file. Once this is done, create a GitHub workflow such that on every release, you create the packages and upload it for release. A workflow like the one listed below should do the trick, except you would be using CMake and `cpack -G DEB`, etc. for each package.

https://github.com/capstone-engine/capstone/blob/next/.github/workflows/build_release.yml

I have a working example on how to create Debian and RPM packages already using CPackConfig.txt here

https://github.com/capstone-engine/capstone/pull/2590

### Is the feature specific to an operating system, compiler, or build system version?

For now, start with Linux, but it would be nice to attempt other Operating Systems too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.