File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,30 @@ jobs:
263
263
run : |
264
264
# Remove the older CMake version
265
265
brew unlink cmake
266
+
267
+ # Create a temporary local tap
268
+ cd "${{runner.temp}}"
269
+ mkdir -p user/homebrew-tap/Formula
270
+ cd user/homebrew-tap
271
+ git init
272
+
266
273
# Download the Homebrew formula for CMake==3.27.2
267
- curl -fsSL -o cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/fd21fcf239bcd0231c9fed5719403ec128151af4/Formula/cmake.rb
268
- brew install cmake.rb
274
+ curl -fsSL -o cmake.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/fd21fcf239bcd0231c9fed5719403ec128151af4/Formula/c/cmake.rb
275
+ mv cmake.rb ./Formula/
276
+
277
+ git add .
278
+ git commit -m "Add CMake formula"
279
+
280
+ # Tap the local repository
281
+ brew tap user/homebrew-tap "${{runner.temp}}/user/homebrew-tap"
282
+
283
+ # Install CMake from the local tap
284
+ brew install --build-from-source user/homebrew-tap/cmake
285
+
286
+ # Clean up the tap
287
+ brew untap user/homebrew-tap
288
+ cd "${{runner.temp}}"
289
+ rm -rf user
269
290
- name : Download and Install sccache
270
291
if : ${{ inputs.sccache-mode != 'DISABLED' }}
271
292
working-directory : " ${{runner.temp}}"
You can’t perform that action at this time.
0 commit comments