luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
570 stars 109 forks source link

0.5.0 nuget release? #44

Closed kf6kjg closed 7 years ago

kf6kjg commented 7 years ago

I see that a week ago a commit was placed for 0.5.0, but I'm not seeing 0.5.0 in NuGet, only 0.4.2. Need any help?

kf6kjg commented 7 years ago

BTW, I helped the LibreMetaVerse project set up their build system so that tag commits against the master branch done become releases and are automatically uploaded to NuGet. You can see the resulting Appveyor config file if you wish. I can also help you with setting up Appveyor.

You can do similar with TravisCI as well, just not as cleanly nor as fast. On a couple of my projects I used both Travis and Appveyor to prove that both Windows (.NET) and Linux (Mono) builds were good. Both CIs would send the resulting ZIP'd binaries over to GitHub's release page for that version, while Appveyor would also build the NuGet package and send it up to NuGet.org. Makes releases as easy as:

git tag v0.5.0
git push origin --tags

And I follow up by going to the fresh release draft on GitHub, filling out the release notes, and publishing.

If you would like something like that here I could guide you through the process if you wish.

luca-piccioni commented 7 years ago

Thanks, I'm eager too to release the 0.5.0 version, that will contains additional enumerations, but I'm waiting the merge of this pull request. In case the merge will late too much, I'll push nuget packages all the same (I'm maintaining my own gl.xml).

I didn't know about Appveyor, and automatic nuget management seems a wonderful idea to me; definitively I'll do it. I've already integrated TravisCI, but I develop mainly on Windows and maintaining different solution files for Mono is disturbing my laziness.

A fail on TravisCI was I wasn't able to run my unit tests due missing GL implementation (I tried MESA without success). Do you know anything about this issue on Appveyor? Is it running headless, or I have a chance to get GL rendering on it?

luca-piccioni commented 7 years ago

Almost done. Thanks for the template! It was real fun. I think the configuration is OK for the moment. Happily I got a software GL renderer during unit tests! :rofl:

kf6kjg commented 7 years ago

yay! I've been having a tough time with headless/software OpenGL for some time now myself, got a project that wants it, so if you've got some pointers, I'm all ears!

luca-piccioni commented 7 years ago

What I'm getting on AppVeyor is

Vendor: Microsoft Corporation
Renderer: GDI Generic
Version: 1.1.0
Found 3 GL extensions:
- GL_WIN_swap_hint
- GL_EXT_bgra
- GL_EXT_paletted_texture

Now I've almost managed the pixel format queries even without WGL_ARB_pixel_formats, and some renderable pixel format is returned (otherwise the test would fail).

On TravisCI I was able to start tests on GLX, by installing the packages via travis.yml:

addons:
  apt:
     packages:
        - xserver-xorg-video-dummy
        - xpra
        - mesa-utils

However, I got only crashes on MESA native stack, missing pointers; I wasn't able to run fully a test (yet not even now on my local machine :sob: )