Skip to content

Commit

Permalink
Use matrix.clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
nVxx authored Nov 8, 2023
1 parent 5ec4650 commit 7b53233
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
os: [ubuntu-20.04, ubuntu-22.04, windows-2022, macos-12]
type: [Debug, Release]
compiler: [default]
clang: ["/usr/lib/llvm-12/bin/clang"]
include:
- target-platform: iphoneos
os: macos-12
Expand Down Expand Up @@ -63,8 +64,8 @@ jobs:
cmake_args="-DCMAKE_BUILD_TYPE=${{ matrix.type }}"
if [[ "${{matrix.compiler}}" == "clang"* ]]; then
export CC=/usr/bin/clang-12
export CXX=/usr/bin/clang++-12
export CC=${{ matrix.clang }}
export CXX=${{ matrix.clang++ }}
cmake_args+=" -DCMAKE_EXPORT_COMPILE_COMMANDS=1"
cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/toolchain/Linux_X86_64_llvm.toolchain"
fi
Expand Down

0 comments on commit 7b53233

Please sign in to comment.