Skip to content

Commit 5a04209

Browse files
committed
sccache instead
1 parent b87c1ed commit 5a04209

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: CMake on a single platform
33
on:
44
pull_request:
55
branches: [ "main" ]
6+
7+
env:
8+
SCCACHE_GHA_ENABLED: "true"
69

710
jobs:
811
tests:
@@ -16,11 +19,12 @@ jobs:
1619

1720
steps:
1821

19-
- name: Cache git folder
20-
uses: actions/cache@v3
21-
with:
22-
path: checkout_path/.git
23-
key: git-folder
22+
- name: Run sccache-cache
23+
uses: mozilla-actions/sccache-action@v0.0.9
24+
25+
- name: Run sccache stat for check
26+
shell: bash
27+
run: ${SCCACHE_PATH} --show-stats
2428

2529
- uses: actions/checkout@v4
2630
with:
@@ -38,7 +42,7 @@ jobs:
3842
libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev
3943
- name: Configure CMake
4044
# Configure CMake in a 'build' subdirectory.
41-
run: cmake --preset debug
45+
run: cmake --preset debug -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
4246

4347
- name: Build
4448
# Build your program with the given configuration

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"makefile.configureOnOpen": true
2+
"makefile.configureOnOpen": true,
3+
"files.exclude": {
4+
"**/.git": false
5+
}
36
}

0 commit comments

Comments
 (0)