I have a C++ project on GitHub with which I use GitHub CI. My workflow is configured to run on Linux and Windows through the strategy
property:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
This has worked well for me so far, with Cmake identifying the compiler as GNU 9.3.0
. However, I would now like to use an experimental feature added in GCC 10 in my project, and so my build fails due to the old compiler version.
How can I use a more recent version of GCC from my GitHub CI workflow?