File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change 3232 with :
3333 fetch-depth : 0
3434
35- - name : Export XCode SDK Root
35+ - name : Prepare MacOS Installation
3636 if : matrix.os == 'macos-latest'
37- run : echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
37+ run : |
38+ echo "Uninstall CMake"
39+ brew uninstall --force cmake
40+
41+ echo "Uninstall NodeJS and NPM"
42+ npm uninstall npm -g
43+ rm -rf /usr/local/lib/node_modules/npm
44+
45+ echo "Uninstall Ruby"
46+ brew uninstall --force --ignore-dependencies ruby
47+ brew cleanup -s ruby
48+ brew cleanup --prune-prefix
49+ RUBY_FRAMEWORK_DIR=$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks/Ruby.framework
50+ sudo rm -rf $RUBY_FRAMEWORK_DIR
51+
52+ echo "Uninstall Go"
53+ brew uninstall --force go
54+ brew autoremove
55+ sudo rm -rf /usr/local/Cellar/go
56+ sudo rm -rf /usr/local/go
57+ sudo rm -rf /usr/local/opt/go
58+ sudo rm -rf /etc/paths.d/go
59+ sudo rm -rf /usr/local/bin/go
60+ sudo rm -rf /usr/local/bin/gofmt
61+
62+ echo "Uninstall Java"
63+ sudo rm -rf /Library/Java/JavaVirtualMachines/*
64+ sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
65+ sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
66+ unset JAVA_HOME
67+
68+ echo "Export XCode SDK Root"
69+ echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
3870
3971 # TODO: Add support for NetCore Bench
4072 - name : Set up the environment
You can’t perform that action at this time.
0 commit comments