gdx-liftoff icon indicating copy to clipboard operation
gdx-liftoff copied to clipboard

Creating a demo app with each release to show the changes

Open MRZ07 opened this issue 2 years ago • 4 comments

Since I have several projects, it would be a great advantage to see which configurations changed in Gradle, for example. Currently, I have to create a demo project and look via git what changes have happened in the configuration of the project. It would be easier to update a demo project with every release, where you can see the changes of the new release. This way, you can also easily update projects that were created with an older version.

MRZ07 avatar Jul 28 '22 17:07 MRZ07

That's a good idea for sure. A lot of times the changes are fairly minimal, or confined to just a file or two, so checking the commit history would be easier. I'll try to get going on this sometime soon; it shouldn't be too hard.

tommyettinger avatar Jul 29 '22 05:07 tommyettinger

When can this feature be expected?

MRZ07 avatar Aug 15 '22 06:08 MRZ07

Well, I've thought about this a little, and very frequently the changes in a new version only apply to one or a few platforms, or only change some aspect of an extension/library. All of the demo projects would need to use all platforms and maybe all extensions, so that changes could be seen... I'm not sure what is the best way to do this.

tommyettinger avatar Aug 18 '22 04:08 tommyettinger

In my opinion, this should make profound changes such as Gradle script changes visible, the extensions are in most cases only version updates. Therefore, I see the different platforms more in focus. An advantage would be a base configuration which creates a new demo project with every release via command line.

MRZ07 avatar Aug 18 '22 07:08 MRZ07

I'm not sure what is the best way to do this.

Automate. 😎

A new commit with a generated project demo will be pushed on every release to:

czyzby avatar Dec 08 '22 22:12 czyzby

Maybe the workflow should cache Gradle? There's an option in the setup Java action to do it but I think this is the best way: https://github.com/gradle/gradle-build-action (you can still use the gradle wrapper). Also maybe use this as a safety check: https://github.com/gradle/wrapper-validation-action

SonicGDX avatar Dec 11 '22 13:12 SonicGDX

Wrapper validation might make more sense in a PR check workflow. The first one does seem reasonable, I'll look into it.

czyzby avatar Dec 11 '22 14:12 czyzby

I think this issue can be closed now? The projects are now generated automatically from tags, and you can see the changes from version to version in the commit history.

czyzby avatar Feb 08 '23 07:02 czyzby

Yep, it seems to work! Thanks for all your work on this.

tommyettinger avatar Feb 09 '23 05:02 tommyettinger