Skip to content

Commit

Permalink
WIP: Try selecting the language for cpp compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Jan 27, 2022
1 parent 93e7383 commit 95529ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
env:
CTEST_OUTPUT_ON_FAILURE: ON
CTEST_PARALLEL_LEVEL: 2
CC: ${{ matrix.compiler }}-${{ matrix.version }}
CXX: ${{ matrix.compiler }}-${{ matrix.version }}

strategy:
fail-fast: false
Expand Down Expand Up @@ -49,6 +47,15 @@ jobs:
with:
python-version: 3.8

- name: Set env vars
run: |
echo "CC=${{ matrix.compiler }}-${{ matrix.version }}" >> $GITHUB_ENV
if [ "${{ matrix.compiler }}" == "clang" ]; then
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
else
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
fi
- name: Install
run: |
python -m pip install cmake==3.17.3 conan==1.28.1 --upgrade
Expand Down

0 comments on commit 95529ad

Please sign in to comment.