Skip to content

Commit 53858d2

Browse files
committed
update macos ci
1 parent efda8d7 commit 53858d2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/MacOs.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
library_type: [ Static ]
3636
include:
3737
- compiler: { tool: llvm }
38-
cxx: /opt/homebrew/opt/llvm/bin/clang++
39-
cc: /opt/homebrew/opt/llvm/bin/clang
38+
cxx: clang++
39+
cc: clang
4040

4141
runs-on: ${{matrix.os}}
4242
steps:
@@ -45,9 +45,19 @@ jobs:
4545
- name: Create Build Environment
4646
if: matrix.compiler.tool != 'apple-clang'
4747
run: |
48-
brew update &&
48+
brew upgrade &&
4949
brew install ${{matrix.compiler.tool}}@${{matrix.compiler.ver}} ninja
5050
cmake -E make_directory ${{runner.workspace}}/build
51+
52+
- name: Setup Environment
53+
if: matrix.compiler.tool == 'llvm'
54+
run: |
55+
echo "CXX=/opt/homebrew/opt/llvm@${{matrix.compiler.ver}}/bin/${{matrix.cxx}}" >> $GITHUB_ENV
56+
echo "CC=/opt/homebrew/opt/llvm@${{matrix.compiler.ver}}/bin/${{matrix.cc}}" >> $GITHUB_ENV
57+
58+
- name: Setup Environment
59+
if: matrix.compiler.tool == 'gcc'
60+
run: |
5161
echo "CXX=${{matrix.cxx}}" >> $GITHUB_ENV
5262
echo "CC=${{matrix.cc}}" >> $GITHUB_ENV
5363

0 commit comments

Comments
 (0)