Skip to content

Commit 58f72d5

Browse files
committed
ci: Enable sccache compiler cache for Rust and C
1 parent 8f0ab91 commit 58f72d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-cln.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
run: |
5858
bash -x .github/scripts/setup.sh
5959
60+
- name: Setup sccache
61+
uses: mozilla-actions/[email protected]
62+
6063
- name: Build
6164
env:
6265
COMPILER: ${{ inputs.compiler }}
@@ -65,16 +68,19 @@ jobs:
6568
VALGRIND: ${{ inputs.valgrind }}
6669
COMPAT: 1
6770
CFG: ${{ inputs.cfg }}
71+
RUSTC_WRAPPER: sccache
6872
run: |
6973
set -e
70-
./configure --enable-debugbuild CC="$COMPILER" ${{ inputs.coptflags }}
74+
./configure --enable-debugbuild CC="sccache $COMPILER" ${{ inputs.coptflags }}
7175
7276
uv run make -j $(nproc) testpack.tar.bz2
7377
7478
# Rename now so we don't clash
7579
mv testpack.tar.bz2 cln-${CFG}.tar.bz2
7680
7781
- name: Check rust packages
82+
env:
83+
RUSTC_WRAPPER: sccache
7884
run: cargo test --all
7985

8086
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)