-
Notifications
You must be signed in to change notification settings - Fork 39
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
Github Actions Automated Builds #55
Conversation
Thanks, let me find some time this weekend to take a closer look. Re: Windows, the instructions haven't changed, but the issue is probably that the SDL header files are not in the expected location (a hard-coded path in the Makefile). This forum post has some more information: http://supermodel3.com/Forum/viewtopic.php?f=3&t=2203&p=20684#p20676 |
Checking in to see if you had a chance to take a look at this yet. I think it probably makes sense to update the Makefile so the windows build can work. |
Hey sorry I've been absolutely swamped and may not be able to look at it this weekend until Sunday night or Monday. But I would like to get to this. What's a good way to test this? |
Probably to make a temporary fork tbh and testing it there and deleting when you're done. I did it by making a fork I plan on deleting once this is merged in, and it seems to be the simplest way to test without clogging up the main repo. It's completely free, so shouldn't be an issue. |
Thanks for bearing with me on this. I appreciate the work you've put into this. I've just been incredibly busy :( However, I would like to get this over the finish line soon. A couple of things will be necessary to figure out:
Now, re: the Windows build, I see what the issue is. I did a test and had it execute sdl2-config to figure out what was going on:
What is the best way to handle this? I think it may be possible to write a shell command to extract the -I part. Then, an option can be added specifically to Makefile.Win32 that if detected, will run sdl2-config and extract the include directory. Likewise for the library directory. What do you think? I can probably figure this out myself but would like your thoughts. |
I tested the adjustments and they work. Makefile.Win32 needs to be changed to allow the SDL2 include and lib paths to be overridden:
Then, the Windows action should look like this:
Still more work to do. Most importantly:
|
Feel free to push those to this PR, as you should have final say on how the build process works. RE: Github releases, that can be done with a helper function, such as https://github.com/softprops/action-gh-release (there are a bunch of others if this doesn't work) So, either along with or instead of upload-artifact, we can create a release. Now to get that on your website, we can either just direct people to the github releases (and also save in the amount of files you need to host), or just add in more tools to automate that such as a GCP/AWS/Azure/Etc addon. |
Sorry this is taking so long. Haven't had any time to look at it (juggling 4 other projects, so context switches are difficult). But I intend to look at it early next week again! If GitHub releases end up working well, we can indeed just have the download page link here. That's a solid idea. |
Not an issue. You will probably want to tweak the activation logic (unless you are only pushing to Main once things are ready for release), but besides that it shouldn't be much more of a push to get it across the finish line. Let me know if you need further help! |
Hi @trzy ! The flatpak somebody made for this project seems to be pretty broken making me encouraged to bring this back up for automated builds. Any time to try to get this done? |
Yes I really need to get around and do this. I’m always too busy :) Can you coordinate with me on Discord by any chance or via email? My Discord handle is theoneandonlybart
… On Jan 27, 2024, at 3:17 PM, Griffin ***@***.***> wrote:
Hi @trzy <https://github.com/trzy> !
The flatpak somebody made for this project seems to be pretty broken making me encouraged to bring this back up for automated builds. Any time to try to get this done?
—
Reply to this email directly, view it on GitHub <#55 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAJZ3RPX6FMSV4FQG2ZV7KDYQWDIFAVCNFSM6AAAAAATJIHBCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGM3DIMJYGM>.
You are receiving this because you were mentioned.
|
Apologies for the delay, I have added you. |
Closing in favor of #75 |
Draft of adding automated builds via Github actions. Linux should work as expected, but Windows is having issues completing the build with the current readme instructions:
Src/OSD/Windows/DirectInputSystem.h:36:10: fatal error: SDL.h: No such file or directory
@trzy are the current instructions up to date still? Looks like SDL is not being properly found even with the path being added. Then again, I am not a Windows dev at all, so this is all anecdotal.
For reference, this will trigger a new build that will be hosted in Github actions as an artifact every time a commit or PR is made to the master branch. You can change that frequency, or even move them to releases instead with https://github.com/softprops/action-gh-release
Reference to: #52 (comment)