File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
actions/macos-update-clang Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update clang
2+ runs :
3+ using : composite
4+ steps :
5+ - shell : bash
6+ run : |
7+ softwareupdate -l
8+ label=$((softwareupdate -l 2>/dev/null | grep 'Label:' | grep -o 'Command Line Tools for Xcode.*' | head -1) || echo '')
9+ if [ -n "$label" ]; then
10+ softwareupdate -i "$label"
11+ xcode_path=$(ls -1 '/Applications' | grep 'Xcode_.*\.app' | head -1)
12+ sudo xcode-select -s "/Applications/$xcode_path"
13+ else
14+ echo "Not found."
15+ fi
16+ which clang
17+ clang -v
Original file line number Diff line number Diff line change @@ -360,6 +360,8 @@ jobs:
360360 uses : actions/checkout@v5
361361 with :
362362 ref : ${{ inputs.branch }}
363+ - name : Update clang
364+ uses : ./.github/actions/macos-update-clang
363365 - name : brew
364366 uses : ./.github/actions/brew
365367 - name : ./configure
Original file line number Diff line number Diff line change @@ -239,6 +239,8 @@ jobs:
239239 steps :
240240 - name : git checkout
241241 uses : actions/checkout@v5
242+ - name : Update clang
243+ uses : ./.github/actions/macos-update-clang
242244 - name : brew
243245 uses : ./.github/actions/brew
244246 - name : ccache
You can’t perform that action at this time.
0 commit comments