Skip to content

Commit

Permalink
ci(linux-build.yml): improve linux build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Oct 5, 2023
1 parent 9ddb728 commit 8e9659d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 8e9659d

Please sign in to comment.