I use it in my yml file:
- name: Setup C/C++ Compiler
id: setup-compiler
uses: rlalik/setup-cpp-compiler@master
with:
compiler: gcc-latest
- name: Verify GCC Installation
run: |
gcc --version
g++ --version
From this github: https://github.com/rlalik/setup-cpp-compiler