Skip to content

Commit 602c8fa

Browse files
[GitHub] Fix slow sccache install on macOS by upgrading macOS version (llvm#77165)
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 actions/runner-images#5900 has been resolved or obsoleted, so I do not believe we need to lock macOS to 11 anymore.
1 parent 16094cb commit 602c8fa

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/llvm-project-tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
required: false
1515
os_list:
1616
required: false
17-
default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
17+
default: '["ubuntu-latest", "windows-2019", "macOS-12"]'
1818
workflow_call:
1919
inputs:
2020
build_target:
@@ -34,9 +34,7 @@ on:
3434
type: string
3535
# Use windows-2019 due to:
3636
# https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
37-
# We're using a specific version of macOS due to:
38-
# https://github.com/actions/virtual-environments/issues/5900
39-
default: '["ubuntu-latest", "windows-2019", "macOS-11"]'
37+
default: '["ubuntu-latest", "windows-2019", "macOS-12"]'
4038

4139
concurrency:
4240
# Skip intermediate builds: always.
@@ -91,10 +89,6 @@ jobs:
9189
variant: sccache
9290
- name: Build and Test
9391
uses: llvm/actions/build-test-llvm-project@main
94-
env:
95-
# Workaround for https://github.com/actions/virtual-environments/issues/5900.
96-
# This should be a no-op for non-mac OSes
97-
PKG_CONFIG_PATH: /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
9892
with:
9993
cmake_args: '-GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache ${{ inputs.extra_cmake_args }}'
10094
build_target: '${{ inputs.build_target }}'

0 commit comments

Comments
 (0)