Skip to content

Commit 45b2104

Browse files
committed
use env var
1 parent e53651a commit 45b2104

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
name: "Install clang-16 (for c++20)"
4848
run: |-
4949
brew install llvm@16
50-
export PATH="/opt/homebrew/opt/llvm@16/bin:$PATH"
51-
export LDFLAGS="-L/opt/homebrew/opt/llvm@16/lib"
52-
export CPPFLAGS="-I/opt/homebrew/opt/llvm@16/include"
53-
export CC=/opt/homebrew/opt/llvm@16/bin/clang
54-
export CXX=/opt/homebrew/opt/llvm@16/bin/clang++
50+
echo 'export PATH="/opt/homebrew/opt/llvm@16/bin:$PATH"' >> /Users/runner/.bash_profile
51+
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm@16/lib"' >> /Users/runner/.bash_profile
52+
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm@16/include"' >> /Users/runner/.bash_profile
53+
echo 'export CC=/opt/homebrew/opt/llvm@16/bin/clang' >> /Users/runner/.bash_profile
54+
echo 'export CXX=/opt/homebrew/opt/llvm@16/bin/clang++' >> /Users/runner/.bash_profile
5555
5656
- if: "matrix.os == 'ubuntu-20.04'"
5757
name: "Install gcc-10 (for c++20)"

0 commit comments

Comments
 (0)