73
73
# We're using a specific version of macOS due to:
74
74
# https://github.com/actions/virtual-environments/issues/5900
75
75
- macOS-latest
76
+ include :
77
+ - compile_cache : sccache
78
+
79
+ - compile_cache : ccache
80
+ os : macos-latest
76
81
steps :
77
82
- name : Setup Windows
78
83
if : startsWith(matrix.os, 'windows')
96
101
- uses : actions/checkout@v4
97
102
with :
98
103
fetch-depth : 250
99
- - name : Setup ccache
104
+ - name : Setup ${{ matrix.compile_cache }}
100
105
uses : hendrikmuhs/ccache-action@v1
101
106
with :
102
107
# A full build of llvm, clang, lld, and lldb takes about 250MB
@@ -108,8 +113,8 @@ jobs:
108
113
# fit under the 10 GB limit.
109
114
# Default to 2G to workaround: https://github.com/hendrikmuhs/ccache-action/issues/174
110
115
max-size : 2G
111
- key : ${{ matrix.os }}
112
- variant : sccache
116
+ key : ${{ matrix.compile_cache }}-${{ matrix. os }}
117
+ variant : ${{ matrix.compile_cache }}
113
118
- name : Build and Test
114
119
if : " !startsWith(matrix.os, 'windows')"
115
120
uses : llvm/actions/build-test-llvm-project@main
@@ -118,7 +123,7 @@ jobs:
118
123
# This should be a no-op for non-mac OSes
119
124
PKG_CONFIG_PATH : /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
120
125
with :
121
- cmake_args : ' -GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="BPF;SBF" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache '
126
+ cmake_args : ' -GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="BPF;SBF" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.compile_cache }} -DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.compile_cache }} '
122
127
build_target : ' ${{ inputs.build_target }}'
123
128
124
129
- name : Build and Test libclc
0 commit comments