Skip to content

Commit eb2be38

Browse files
committed
[SOL] Workaround sccache failure (llvm#93)
1 parent a7a1936 commit eb2be38

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

+9-4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ jobs:
7373
# We're using a specific version of macOS due to:
7474
# https://github.com/actions/virtual-environments/issues/5900
7575
- macOS-latest
76+
include:
77+
- compile_cache: sccache
78+
79+
- compile_cache: ccache
80+
os: macos-latest
7681
steps:
7782
- name: Setup Windows
7883
if: startsWith(matrix.os, 'windows')
@@ -96,7 +101,7 @@ jobs:
96101
- uses: actions/checkout@v4
97102
with:
98103
fetch-depth: 250
99-
- name: Setup ccache
104+
- name: Setup ${{ matrix.compile_cache }}
100105
uses: hendrikmuhs/ccache-action@v1
101106
with:
102107
# A full build of llvm, clang, lld, and lldb takes about 250MB
@@ -108,8 +113,8 @@ jobs:
108113
# fit under the 10 GB limit.
109114
# Default to 2G to workaround: https://github.com/hendrikmuhs/ccache-action/issues/174
110115
max-size: 2G
111-
key: ${{ matrix.os }}
112-
variant: sccache
116+
key: ${{ matrix.compile_cache }}-${{ matrix.os }}
117+
variant: ${{ matrix.compile_cache }}
113118
- name: Build and Test
114119
if: "!startsWith(matrix.os, 'windows')"
115120
uses: llvm/actions/build-test-llvm-project@main
@@ -118,7 +123,7 @@ jobs:
118123
# This should be a no-op for non-mac OSes
119124
PKG_CONFIG_PATH: /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
120125
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 }}'
122127
build_target: '${{ inputs.build_target }}'
123128

124129
- name: Build and Test libclc

0 commit comments

Comments
 (0)