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 build action #39

Closed
wants to merge 3 commits into from
Closed

Add build action #39

wants to merge 3 commits into from

Conversation

kgrubb
Copy link
Contributor

@kgrubb kgrubb commented Apr 16, 2020

This includes the appstream validation, but adds it after a build is completed.

Supersedes #38.

I've also got to test this pr out too, right now its just a rough draft

@kgrubb
Copy link
Contributor Author

kgrubb commented Apr 17, 2020

Alright, tested it out here:

https://github.com/kgrubb/helloworld/runs/593985392

@kgrubb kgrubb marked this pull request as ready for review April 17, 2020 01:07
@kgrubb
Copy link
Contributor Author

kgrubb commented Apr 17, 2020

One thing to note is that this currently requires a data dir with the appdata.xml inside to be built into the build directory.

@danirabbit
Copy link
Member

Yeah that’s one reason to do it from packaging is so that you can uncompress the package at the end and always have consistent locations for the files you need to test

@decathorpe
Copy link

Yeah that’s one reason to do it from packaging is so that you can uncompress the package at the end and always have consistent locations for the files you need to test

You don't necessarily need to do it from packaging. Since I've added a meson install step to most elementary project's CI settings (:smiling_imp:) it would be easy to just test DESTDIR contents after the install (where the location of installed appdata is then predictable).

@decathorpe
Copy link

Looking at the shell script, you don't need to use find at all.

Something like this should work:

appstream-util validate-relax build/out/usr/share/metainfo/*.appdata.xml
appstreamcli validate build/out/usr/share/metainfo/*.appdata.xml

This only covers appdata files with translations, only after they have been processed in meson install, and only looks for them in the standard location.

@jeremypw
Copy link

jeremypw commented May 3, 2021

@kgrubb Is this ready for review? Maybe better to request a particular reviewer or team as there has been no action for a while. Unfortunately, I do not have enough knowledge to do it.

@kgrubb
Copy link
Contributor Author

kgrubb commented May 3, 2021

I think this can be closed. We ended up going a different direction, and with flatpaks becoming more of the norm, a build step is no longer really necessary.

@kgrubb kgrubb closed this May 3, 2021
@kgrubb kgrubb deleted the add-build-action branch November 18, 2021 21:17
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

Successfully merging this pull request may close these issues.

None yet

4 participants