diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 1cc9b7a5c5..4aca0a4ef8 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -13,7 +13,15 @@ jobs: strategy: fail-fast: false matrix: - compiler: [g++, clang] + compiler: [gcc, clang] + include: + - compiler: gcc + cxx_compiler: g++ + - compiler: clang + cxx_compiler: clang++ + env: + CC: ${{ matrix.compiler }} + CXX: ${{ matrix.cxx_compiler }} steps: - name: Checkout last commit @@ -22,12 +30,6 @@ jobs: repository: ${{ inputs.repository }} submodules: recursive - - name: Use clang - if: ${{ matrix.compiler == 'clang' }} - run: | - echo "CC=/usr/bin/clang" >> $GITHUB_ENV - echo "CXX=/usr/bin/clang++" >> $GITHUB_ENV - - name: Install dependency run: ./action-install-linux.sh