diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d4204de..a666bf4 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -20,9 +20,19 @@ jobs: CC: clang - os: ubuntu-latest CC: gcc + gcc_version: 11 + - os: ubuntu-latest + CC: gcc + gcc_version: latest steps: - uses: actions/checkout@v2 + + - name: Install GCC + if: matrix.CC == 'gcc' + uses: egor-tensin/setup-gcc@v1 + with: + version: ${{ matrix.gcc_version }} - name: Build env: