File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,14 +19,5 @@ if (( ! ${+commands[brew]} )) {
1919
2020brew bundle --file ${SCRIPT_HOME}/.Brewfile
2121
22- # Install specific cmake version
23- local cmake_version=$(cmake --version 2>/dev/null | grep -o '3.31.6')
24- if [[ ! "${cmake_version}" ]]; then
25- brew unlink cmake
26- brew tap-new local/tap
27- brew extract cmake local/tap --version 3.31.6
28- brew install local/tap/cmake@3.31.6
29- fi
30-
3122rehash
3223log_group
Original file line number Diff line number Diff line change @@ -108,6 +108,29 @@ jobs:
108108 print "pluginName=${product_name}" >> $GITHUB_OUTPUT
109109 print "pluginVersion=${product_version}" >> $GITHUB_OUTPUT
110110
111+ - name : Restore CMake Cache ♻️
112+ uses : actions/cache@v4
113+ id : cmake-cache
114+ with :
115+ path : /opt/cmake
116+ key : macos-cmake-3.31.6
117+
118+ - name : Install CMake 3.31.6 🔨
119+ if : steps.cmake-cache.outputs.cache-hit != 'true'
120+ shell : zsh --no-rcs --errexit --pipefail {0}
121+ run : |
122+ : Install CMake 3.31.6 🔨
123+ curl -fsSL https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos-universal.tar.gz -o cmake.tar.gz
124+ sudo mkdir -p /opt/cmake
125+ sudo tar xzf cmake.tar.gz --strip-components=1 -C /opt/cmake
126+ rm cmake.tar.gz
127+
128+ - name : Add CMake to PATH 🛤️
129+ shell : zsh --no-rcs --errexit --pipefail {0}
130+ run : |
131+ : Add CMake to PATH 🛤️
132+ print "/opt/cmake/CMake.app/Contents/bin" >> $GITHUB_PATH
133+
111134 - uses : actions/cache@v4
112135 id : ccache-cache
113136 with :
Original file line number Diff line number Diff line change 55 pull_request :
66 paths-ignore :
77 - ' **.md'
8- branches : [master, main]
8+ branches : [master, main, dev ]
99 types : [ opened, synchronize, reopened ]
1010permissions :
1111 contents : read
You can’t perform that action at this time.
0 commit comments