title: How to select the C/C++ compiler used for a GitHub Actions Job?
body: <p>Is there a way to select the default C/C++ compiler (such as gcc or clang) for a GitHub Actions job?</p>
  
  <p>To be precise, I want CMake to pick up different compilers without hacking the CMake command.</p>
  
  <p>Ideally, by extending the build matrix. Similar to the Node.js version, as described in the official docs:
  <a href="https://help.github.com/en/articles/configuring-a-workflow#configuring-a-build-matrix" rel="noreferrer">https://help.github.com/en/articles/configuring-a-workflow#configuring-a-build-matrix</a></p>
  
  <p>Something like that:</p>
  
  <pre><code>[..]
  strategy:
    matrix:
      compiler: [gcc, clang]
  [..]
  </code></pre>