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.
version: 2.1 orbs: win: firstname.lastname@example.org jobs: build-for-linux: docker: - image: cimg/node:14.10.1 auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD steps: - checkout - run: g++ src/night.cpp build-for-windows: executor: name: win/default size: "medium" steps: - checkout - run: g++ src/night.cpp workflows: version: 2.1 build: jobs: - build-for-linux - build-for-windows
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?