-
Notifications
You must be signed in to change notification settings - Fork 365
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
Feature Request: SHFB builder for Github Actions / Workflow #842
Comments
I don't know anything about GitHub actions or workflows. I'll have to learn about them first to see if it's even possible to run SHFB in one of them. That will take some time. If anyone has done this already and is willing to share, please feel free to do so. |
doc: https://docs.github.com/en/actions/creating-actions
|
There may be a potential issue. SHFB is full .NET Framework and as far as I know only runs on Windows. I do have plans to look into a .NET Core version but that's a ways off for now. |
Hmm, wait for you to switch for core version 1st. BTW, it should not be a good idea to include any code in the main structure, which can only use under Windows. |
Yes, I've started evaluating it. I need to shift some stuff around to isolate the UI stuff like component configuration forms and how they are invoked. For the most part, it compiles cleanly once those bits are removed. The build tasks also need to be set up for multi-targeting as the MSBuild versions used are different. So, in the meantime, I'll leave this open for future consideration. |
IMHO, the current VS is not built on netcore. Maybe the key jobs are how to build a off-the-vs compiler interface and make sure the data structures are compatible between the VS-IDE components and compiler. Another reason that not suggest to change the VS-IDE components is, I guess the VS will have a big change to suite dotnet core very soon in order to support linux, macos and arm based hardwares. |
Here's an example of one I got operational on .NET Framework: Took a little too much work to learn how things work, IMO, but I was finally able to get it to go and produce some feedback. They need some better reference examples for various platforms. Hopefully what I learned for the script above will be helpful to you. |
Hi all, I wrote a github action for SHFB.
There is currently only one known problem, the vsix installation takes 8 min. My plan is to give it to Eric if it is ready. Feel free to test it. Ralf |
@Bassman2 Is that the same thing as what's being requested here? I wouldn't think the VSIX has any place in a GitHub action so why would it need to be installed? Progress has been made with regard to the original issue as the next release supports running under .NET Core. Ubuntu support is still questionable though as I'm quite sure there are issues with path separators throughout the code base so those still need to be addressed. |
OK I should have read more than the headline. |
I'm looking forward to this feature as well. In the meantime, I forked @Bassman2 's GitHub Action workflow to work with the latest version here. I have it running within a Windows runner to ignore any compatibility issue with Linux. Unfortunately it takes as much as 20 minutes to install the vsix, but it does install and run. On a side note, it does not build the documentation with @EWSoftware Let me know if/how I can help with this feature. |
@Shane32 If the null reference exception you are referring to is #930, install v2022.8.14.1 which should resolve the issue. Note that you must manually uninstall v2022.8.14.0 first though as it isn't being removed by the latest MSI installer for some reason. If installed side by side, the issue can still occur. I'm not sure what the workflow does as I haven't look at it yet, but if there's a way to skip the VSIX install, I'd just remove that part as it isn't needed for command line builds, just the MSI installer.
|
I just installed SHFB for the first time today (as version 2022.8.14.1), so it can't be a conflict with an old version. I will try modifying the GitHub Action workflow to exclude the vsix install and see how that goes. Here's the
Here's the relevant part of the build log:
If you want to play with it yourself, just download my fork of EPPlus 4.5.3.3 here: https://github.com/Shane32/EPPlus.git Then do this:
However, if you try this, all is well:
|
I would like to comment and say that I have been looking for a good tool to generate API documentation, and I look forward to trying out this tool on other of my projects. 👍 👍 👍 |
By the way, here's a direct link to view the shfbproj file: I didn't write it, but it seems to work well (with msbuild). |
The GitHub Action workflow builds the documentation project just fine without the vsix installation, and the msi only takes 15 seconds to install. 👍 (Again, this is on a Windows runner.) |
If you're using references to up to date nuget packages for EWSoftware.SHFB + whatever framework reference you need (e.g. EWSoftware.SHFB), a help project should build just fine using a plain |
Please consider to write a Github Action to build SHFB project in order to complete the CI/CD. Thanks.
The text was updated successfully, but these errors were encountered: