Skip to content

Commit 6229de5

Browse files
therealbobopoiana
authored andcommitted
new(ci): add sccache support
Signed-off-by: Roberto Scolaro <[email protected]>
1 parent 89b63fa commit 6229de5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/e2e_ci.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
clang-14 llvm-14 \
3636
git \
3737
clang \
38+
ccache \
3839
llvm \
3940
pkg-config \
4041
autoconf \
@@ -73,11 +74,18 @@ jobs:
7374
run: |
7475
sudo apt install -y --no-install-recommends linux-headers-$(uname -r) gcc-multilib g++-multilib
7576
77+
- name: Run sccache-cache
78+
uses: mozilla-actions/[email protected]
79+
7680
- name: Build e2e tests 🏗️
81+
env:
82+
SCCACHE_GHA_ENABLED: "true"
7783
run: |
7884
mkdir -p build
7985
cd build && \
8086
cmake \
87+
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
88+
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
8189
-DBUILD_BPF=ON \
8290
-DUSE_BUNDLED_DEPS=ON \
8391
-DUSE_ASAN=ON \
@@ -97,7 +105,7 @@ jobs:
97105
id: cache
98106
with:
99107
path: build
100-
key: build-${{ matrix.arch }}-${{ github.run_id }}
108+
key: build-e2e-${{ matrix.arch }}-${{ github.run_id }}
101109

102110
test-e2e:
103111
name: test-e2e-${{ matrix.arch }}-${{ matrix.driver.name }} 😇 (bundled_deps)
@@ -114,8 +122,8 @@ jobs:
114122
uses: actions/cache/restore@v3
115123
with:
116124
path: build
117-
key: build-${{ matrix.arch }}-${{ github.run_id }}
118-
restore-keys: build-
125+
key: build-e2e-${{ matrix.arch }}-${{ github.run_id }}
126+
restore-keys: build-e2e-
119127

120128
- name: Fix kernel mmap rnd bits
121129
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with

0 commit comments

Comments
 (0)