Skip to content

Commit

Permalink
Use COMPILER_OVERRIDE
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 26, 2024
1 parent 0fde87a commit 0320262
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,20 @@ jobs:
packages: ${{ matrix.compiler }}
version: ${{ matrix.compiler }}

- name: Remove unused compilers
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get remove -y
${{ matrix.compiler != 'clang' && 'clang' || '' }}
${{ matrix.compiler != 'gcc' && 'gcc' || '' }}
${{ matrix.compiler != 'pcc' && 'pcc' || '' }}
${{ matrix.compiler != 'tcc' && 'tcc' || '' }}

- name: Setup MSVC
uses: aminya/setup-cpp@v1
if: ${{ contains(matrix.os, 'windows') }}
with:
compiler: msvc
vcvarsall: true

- name: Run tests (linux)
- name: Run tests (ubuntu-latest)
if: ${{ contains(matrix.os, 'ubuntu') }}
run: make c_test${{ (matrix.os != 'ubuntu-latest' && '_auto') || '' }} COV=true
run: make c_test COV=true COMPILER_OVERRIDE=${{ matrix.compiler }}

- name: Run tests (ubuntu lts)
if: ${{ contains(matrix.os, 'ubuntu') }}
run: make c_test_auto

- name: Run tests (windows)
if: ${{ contains(matrix.os, 'windows') }}
Expand Down

0 comments on commit 0320262

Please sign in to comment.