Skip to content

Commit aceb883

Browse files
committed
ci: cache .cache folder for turbo/lints
1 parent b517393 commit aceb883

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,7 @@ jobs:
3232

3333
- uses: pnpm/action-setup@v4
3434

35-
- name: Setup Cpp
36-
uses: aminya/setup-cpp@v1
37-
with:
38-
vcvarsall: true
39-
cmake: true
40-
ninja: true
41-
python: true
42-
vcpkg: 608d1dbcd6969679f82b1ca6b89d58939c9b228e
43-
architecture: ${{ matrix.cpp_arch }}
44-
45-
- name: Cache
35+
- name: Cache vcpkg/pnpm
4636
uses: actions/cache@v4
4737
with:
4838
path: |
@@ -53,6 +43,25 @@ jobs:
5343
restore-keys: |
5444
${{ matrix.os }}-${{ matrix.cpp_arch }}-
5545
46+
- name: Cache .cache
47+
uses: actions/cache@v4
48+
with:
49+
path: |
50+
./.cache/
51+
key: ${{ matrix.os }}-${{ matrix.cpp_arch }}-${{ hashFiles('./**/*', '!**/node_modules/**', '!**/build/**', '!**/coverage/**', '!.git/**') }}
52+
restore-keys: |
53+
${{ matrix.os }}-${{ matrix.cpp_arch }}-
54+
55+
- name: Setup Cpp
56+
uses: aminya/setup-cpp@v1
57+
with:
58+
vcvarsall: true
59+
cmake: true
60+
ninja: true
61+
python: true
62+
vcpkg: 608d1dbcd6969679f82b1ca6b89d58939c9b228e
63+
architecture: ${{ matrix.cpp_arch }}
64+
5665
- name: Install Zeromq Mac-OS Dependencies
5766
if: ${{ contains(matrix.os, 'macos') }}
5867
run: |

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
33
"globalEnv": ["OS", "RUNNER_OS", "BUILD_ANALYSIS"],
4+
"cacheDir": ".cache/turbo",
45
"tasks": {
56
"build.tsc": {
67
"outputs": []

0 commit comments

Comments
 (0)