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

ToDo: Provide consistent package versions across build environments #70

Open
Olf0 opened this issue Oct 14, 2024 · 2 comments
Open

ToDo: Provide consistent package versions across build environments #70

Olf0 opened this issue Oct 14, 2024 · 2 comments

Comments

@Olf0
Copy link
Member

Olf0 commented Oct 14, 2024

Currently the generated package version is not consistent, when either building by CI/CD (i.e. by the help of Coderus' Sailfish-SDK Docker-images) or at the SailfishOS-OBS: This might confuse users and RPM.
Note that this only addresses the package version, not the release string, which is either taken from the RPM spec file or (unconditionally) auto-generated by the SailfishOS-OBS. (The final RPM file name is as always <package name>-<version>-<release>.<arch>.rpm.)

I developed a scheme which takes the peculiarities of the mandatory tar_git module at the SailfishOS-OBS into account for Storeman etc. This could be used or adapted for MeeCast. In any case this will require to strictly adhere to the format <release>/<version> for git-tags.

@vasvlad, if this required format for git-tags is O.K. for you, I will proceed researching this and ultimately adapt the GH-workflow configuration accordingly.

P.S.: This will require to adapt the release job in order to digest <release>/<version> as git-tag names and set the release title (free text field, only for GH release pages) to <version>-<release> (or if you insist to v<version>-<release>, but I prefer the simpler variant). Hence it will have to be triggered by (line 6) '*/*' as git-tags (or better / more concisely '*/[0-9]+.[0-9]+.[0-9]+' for SemVer).

@vasvlad
Copy link
Member

vasvlad commented Oct 14, 2024

Hi.
Ok. I'm ready to try use your scheme. Please edit build.yml and show me the feature tag name for next release (for example for version - 1.11.7, release 1)

@Olf0
Copy link
Member Author

Olf0 commented Oct 14, 2024

Will do, but I have no idea when, because this task need some testing in an iterative approach in my clone ("fork") of MeeCast here at GitHub. I experienced that it is hard for me to get bigger changes in GH-workflow YAML files right on the first try.
Hence, do not wait for that, a PR will come some day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants