-
Notifications
You must be signed in to change notification settings - Fork 162
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
CI fixes and updates #1291
CI fixes and updates #1291
Conversation
-Visual Studio 2015 C++ Build Tools no longer installs (deprecated due to sha-1 sig) - Offline installer requires login, instead base on top of docker image with it already installed: https://hub.docker.com/repository/docker/ericoporto/min-ags-dev-env
This fails when building the Editor, from the logs it looks like |
Yeahp, I will look into fixing, it's probably related to have multiple VS installations, so I need to be explicit with the editor. Edit: https://cirrus-ci.com/task/6146950694174720?logs=build#L13 I have it in the docker image built by this PR too, so I just need to find the proper way to have it on the path for MSBuild. |
- fixes missing rc.exe error
@morganwillcock when you have time, can you take a look into this PR? I will left it as draft until then. |
I think this is the only option left to use the existing CI configuration, so if it works it is fine with me. I think the only real change would be that previously the caching of the built container would only have been dependent on the Dockerfile contents, but now if we wanted to update something in your container the Dockerfile needs to also change in order to trigger the rebuild - so as long as the container version number changes it should be fine. Worst case we switch to something else, I've started looking at build system changes so hopefully things get easier to build and not harder. |
Thanks Morgan! Yeah, in the meantime I am also looking to understand better how the Vs 2019 build tools work. @ivan-mogilko can you confirm the binaries generated in the CI (in this PR) are fine on Window 7? It should be (I mean, if it worked before), but I don't have a Win7 machine anymore to test. forgot to update SDL_sound version on Linux, bug in Docker there now, working on it... (my local docker had that line cached) Edit: ok, turns out curl in Debian Jessie is too old to be able to download from Xiph since they updated their tls config. Edit2: Xiph has official mirrors in GitHub, but turns out they don't have libtheora there... (the source provided doesn't match the tarball and fails with many errors when building). Edit3: managed to fix, see xiph/theora#16 |
- Official Xiph website switched to newer tls config incompatible with curl from Debian Jessie - add autoconf needed for theora source in debian jessie, needed for Theora GH package
Updated SDL_sound on the Linux Dockerfile too, had forgotten about it! Had to do a bit more there since the curl in it is too old (see top post). Also bsdtar on Windows isn't reliable from piped input when it's a zip file (it's fine for tar.gz), so made it write to disk instead, probably will fix all those "missing Updated the description on top to reflect that. Let me know if there are any changes on the commits like rebasing or something, but I believe it's all correct now! These commits look safe for ags4 too. |
It is likely a good idea to switch this although you should probably quote the paths just in-case the CI runner ever happens to use a temporary path with a space in it. e.g. |
Ah, yes, I can quote. I ended up in a rabbit hole found out it's a limitation when a zip has multiple files, the tar.gz works because of it's two step approach. |
Yes, it works. |
if you want to, for ags4, I have rebased these same commits in the branch here: https://github.com/ericoporto/ags/tree/ci_cmake_ags4_fixes I don't know how you handle the multiple branches, so I don't know if it helps. |
I'll just merge the master there, any changes specific to ags4 may be appended separately. |
Ah, cool, it should automatically merge then, here I had no conflicts! |
our Windows Dockerfile no longer builds, since the end of April, Visual Studio 2015 C++ Build Tools are no longer available through the web installer, and downloading the new offline installer for it from VS dowloads requires password, so to avoid modifying the build too much, I am using a docker image I pushed on dockerhub months ago that contains exactly it. I tried to pull from an alternate download on archive.org but it took just too much time to download it.
please wait cirrus-ci build this and confirm this PR works.