I have this basic CI set up, and what it does is it compiles a commit in both Linux and Windows environments. The repository is a C++ project, so I have to make sure any new commits can be compiled using a C++ compiler in both Linux and Windows without error.
Here’s the repository for that. This is actually my first time using CircleCI, so I don’t really know what I’m doing, or if this is the best way to do it.
So when I have a new commit, the Linux build works fine, but the Windows build does not. It says that g++ is not recognized. So is there a way to “install” a C++ compile onto CircleCI so I can compile C++ files?
It’s sad that no one has answered this post. I have no i686 Linux machines and my computer can’t make a virtual machine, and I want to test a C++ file in CircleCI like I did in GitLab when I first started using CIs.
@thekatertot I installed g++ using Choco and it worked great! I came across a slight problem though. When I tried to compile a file using g++, it says source file can’t be found. So when the CI runs, does it automatically clone the repo?