Skip to content

Commit 5f63c53

Browse files
committed
make cache action access fewer files
1 parent 85f364a commit 5f63c53

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/build_latest.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: actions/cache@v4
3535
with:
36-
path: target
36+
path: |
37+
target/
38+
!target/tmp/
39+
!target/debug/incremental/
3740
key: build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
3841
restore-keys: |
3942
build-${{ runner.os }}-
@@ -46,7 +49,10 @@ jobs:
4649
- uses: actions/checkout@v4
4750
- uses: actions/cache@v4
4851
with:
49-
path: target
52+
path: |
53+
target/
54+
!target/tmp/
55+
!target/debug/incremental/
5056
key: build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
5157
restore-keys: |
5258
build-${{ runner.os }}-
@@ -59,7 +65,10 @@ jobs:
5965
- uses: actions/checkout@v4
6066
- uses: actions/cache@v4
6167
with:
62-
path: target
68+
path: |
69+
target/
70+
!target/tmp/
71+
!target/debug/incremental/
6372
key: build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
6473
restore-keys: |
6574
build-${{ runner.os }}-
@@ -76,7 +85,10 @@ jobs:
7685
ref: main
7786
- uses: actions/cache@v4
7887
with:
79-
path: target
88+
path: |
89+
target/
90+
!target/tmp/
91+
!target/debug/incremental/
8092
key: build-${{ runner.os }}-${{ hashFiles('Cargo.lock', '.github/workflows/build_latest.yml') }}
8193
restore-keys: |
8294
build-${{ runner.os }}-

0 commit comments

Comments
 (0)