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

Releasing a new version? #108

Closed
duanqn opened this issue Jun 27, 2023 · 24 comments
Closed

Releasing a new version? #108

duanqn opened this issue Jun 27, 2023 · 24 comments
Labels
nice new thing ☺ adds new functionality proposal pending discussion about something to do windows Windows-specific issue

Comments

@duanqn
Copy link

duanqn commented Jun 27, 2023

Hi I noticed that the Windows build pipeline for openage is failing right now so I'd like to remedy that.
To make it easier to maintain in the long run, I think it is the best to integrate nyan into vcpkg so that its dependencies and build status can be tracked.
I have submitted a port request on vcpkg side. Do you have plans to release a new version recently? The vcpkg people may want to use existing github releases instead of the latest commit on master branch.

@duanqn
Copy link
Author

duanqn commented Jun 27, 2023

Working on this PR: microsoft/vcpkg#32250

@heinezen heinezen added nice new thing ☺ adds new functionality proposal pending discussion about something to do windows Windows-specific issue labels Jun 27, 2023
@heinezen
Copy link
Member

Hi, I think this is a pretty good idea!

#106 would result in a version bump / new release so this would be good time for packaging. It will probably be merged alongside SFTtech/openage#1515 which is still a 1-2 weeks away from completion. However, it would be a relatively stable release for use in openage.

@duanqn duanqn changed the title Releaseing a new version? Releasing a new version? Jun 27, 2023
@duanqn
Copy link
Author

duanqn commented Jun 30, 2023

Hi @heinezen , when porting the current nyan to vcpkg I got this error:

warning: The following EXEs were found in /bin or /debug/bin. EXEs are not valid distribution targets.

    D:\packages\nyan-lang_x86-windows\bin\nyancat.exe

warning: The following EXEs were found in /bin or /debug/bin. EXEs are not valid distribution targets.

    D:\packages\nyan-lang_x86-windows\debug\bin\nyancat.exe

Is this nyancat.exe (on Windows) necessary for nyan?

@heinezen
Copy link
Member

@duanqn No that's just the test tool for checking the parser. I think we can remove it from release builds.

@duanqn
Copy link
Author

duanqn commented Jun 30, 2023

Got it. Thanks. I'll see if I can register it as "tools". If not, I'll remove it.

@heinezen
Copy link
Member

heinezen commented Jul 2, 2023

@duanqn New release is pushed and should be ready.

@TheJJ
Copy link
Member

TheJJ commented Jul 2, 2023

nyancat was intended as a formatter/check/print/coloring tool, but right now it's just for testing validity. so for packaging we currently don't need it, but it may be useful later if we add the features. if vcpkg has no nyan package so far, i'd favor naming it nyan instead of nyan-lang, since it will contain nyan.dll etc and not nyan-lang.dll.

@duanqn
Copy link
Author

duanqn commented Jul 3, 2023

Hi @TheJJ , I will put nyancat in the vcpkg package as a tool binary.
As for the name of the package. I'm using nyan-lang because vcpkg favors the name from repology. Looks like this nyan is called nyan-lang and nyan points to https://github.com/shibumi/nyan.

@duanqn
Copy link
Author

duanqn commented Jul 3, 2023

@duanqn New release is pushed and should be ready.

Got it. Will update to 0.3.0 on vcpkg side.

@duanqn
Copy link
Author

duanqn commented Jul 4, 2023

Hi @TheJJ , there are build failures on UWP. Can you have a look?
install-x64-uwp-dbg-out.log

Also, all static linkage builds failed because nyan produces dynamic libs. If we don't want to support static libs, I can disable the static builds.

@duanqn
Copy link
Author

duanqn commented Jul 4, 2023

Also the build failed on OSX. I don't understand the errors. Looks like an issue with the compiler?
install-x64-osx-dbg-out.log

@heinezen
Copy link
Member

heinezen commented Jul 4, 2023

Also the build failed on OSX. I don't understand the errors. Looks like an issue with the compiler?

@duanqn AppleClang is notorious for being out-of-date, so maybe that's where the problems come from? Can you try normal clang and check if that works out? Just tested it with the current build on Ubuntu and it compiles fine in Clang 15.

@duanqn
Copy link
Author

duanqn commented Jul 5, 2023

@heinezen Could be. However, I cannot change the clang version in their build pipelines because it should represent the reality of OSX... I'm going to disable OSX build (until their compiler catches up with everyone else).

@heinezen
Copy link
Member

heinezen commented Jul 5, 2023

@heinezen Could be. However, I cannot change the clang version in their build pipelines because it should represent the reality of OSX... I'm going to disable OSX build (until their compiler catches up with everyone else).

Understandable but frustrating. AppleClang is now 2 standards behind with this.

@duanqn
Copy link
Author

duanqn commented Jul 6, 2023

@heinezen Meanwhile, can you check the UWP build errors?
Also, do we plan to support a static library build?

@TheJJ
Copy link
Member

TheJJ commented Jul 6, 2023

adding a static library option is simple, what would we need it for? i like dynamic linking :)

@duanqn
Copy link
Author

duanqn commented Jul 6, 2023

Well then I need to declare static linkage as "not supported" for nyan. Sounds good?

@TheJJ
Copy link
Member

TheJJ commented Jul 6, 2023

At the moment it is not supported, yes. But it's not hard to add, if we have a good reason it can be done of course :)

@heinezen
Copy link
Member

heinezen commented Jul 6, 2023

I created #110 so we don't forget.

@duanqn
Copy link
Author

duanqn commented Jul 7, 2023

Looks like the UWP failure is because SymInitialize does not exist in UWP. Any ideas on how to fix it?

@heinezen
Copy link
Member

heinezen commented Jul 7, 2023

@duanqn As far as I understand it, there's no equivalent and UWP simply does not allow most debug thing to be build. So we have to check for the UWP build and remove the dbghelp.h references entirely.

@heinezen
Copy link
Member

heinezen commented Jul 8, 2023

https://cmake.org/cmake/help/latest/variable/WINDOWS_STORE.html seems to inducate UWP support

@duanqn
Copy link
Author

duanqn commented Sep 4, 2023

FYI, I have added nyan to vcpkg via microsoft/vcpkg#32250 .

@duanqn duanqn closed this as completed Sep 4, 2023
@heinezen
Copy link
Member

heinezen commented Sep 4, 2023

nicely done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice new thing ☺ adds new functionality proposal pending discussion about something to do windows Windows-specific issue
Projects
None yet
Development

No branches or pull requests

3 participants