Skip to content

Commit

Permalink
new(ci): add sccache support
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo authored and poiana committed Mar 20, 2024
1 parent 89b63fa commit 6229de5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/e2e_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
clang-14 llvm-14 \
git \
clang \
ccache \
llvm \
pkg-config \
autoconf \
Expand Down Expand Up @@ -73,11 +74,18 @@ jobs:
run: |
sudo apt install -y --no-install-recommends linux-headers-$(uname -r) gcc-multilib g++-multilib
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3

- name: Build e2e tests 🏗️
env:
SCCACHE_GHA_ENABLED: "true"
run: |
mkdir -p build
cd build && \
cmake \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
-DBUILD_BPF=ON \
-DUSE_BUNDLED_DEPS=ON \
-DUSE_ASAN=ON \
Expand All @@ -97,7 +105,7 @@ jobs:
id: cache
with:
path: build
key: build-${{ matrix.arch }}-${{ github.run_id }}
key: build-e2e-${{ matrix.arch }}-${{ github.run_id }}

test-e2e:
name: test-e2e-${{ matrix.arch }}-${{ matrix.driver.name }} 😇 (bundled_deps)
Expand All @@ -114,8 +122,8 @@ jobs:
uses: actions/cache/restore@v3
with:
path: build
key: build-${{ matrix.arch }}-${{ github.run_id }}
restore-keys: build-
key: build-e2e-${{ matrix.arch }}-${{ github.run_id }}
restore-keys: build-e2e-

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

0 comments on commit 6229de5

Please sign in to comment.