[llvm] [GitHub] Fix slow sccache install on macOS by upgrading macOS version (PR #77165)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 17:06:50 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Craig Hesling (linux4life798)

<details>
<summary>Changes</summary>

The "Setup ccache" step on macOS-11 builds takes between 15 to 20 mins, whereas this step takes a less than 10 seconds on other runners. The bulk of this time is spent at the "Install sccache" step, where brew emits warnings like "Warning: You are using macOS 11." and "We (and Apple) do not provide support for this old version...".

Bumping the version of macOS greatly decreases this cache setup time to about 20 seconds. Furthermore, it seems like it is speeding up general build times, too.

It appears that https://github.com/actions/virtual-environments/issues/5900 has been resolved or obsoleted, so I do not believe
we need to lock macOS to 11 anymore.

---
Full diff: https://github.com/llvm/llvm-project/pull/77165.diff


1 Files Affected:

- (modified) .github/workflows/llvm-project-tests.yml (+1-3) 


``````````diff
diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index 02b1ab75e960ec..e8bdffc2293916 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -34,9 +34,7 @@ on:
         type: string
         # Use windows-2019 due to:
         # https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
-        # We're using a specific version of macOS due to:
-        # https://github.com/actions/virtual-environments/issues/5900
-        default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
+        default: '["ubuntu-latest", "windows-2019", "macOS-latest"]'
 
 concurrency:
   # Skip intermediate builds: always.

``````````

</details>


https://github.com/llvm/llvm-project/pull/77165


More information about the llvm-commits mailing list