Skip to content

Commit 4043c1f

Browse files
committed
fix(CI): windows CI can't cache nginx/objs
because the windows nmake program doesn't support .PHONY, and therefore it may reuse stale items from the cache instead of building them
1 parent 52286f5 commit 4043c1f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/nginx.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,8 @@ jobs:
185185
~/.cargo/registry/index/
186186
~/.cargo/registry/cache/
187187
~/.cargo/git/db/
188-
nginx/objs/**/CACHEDIR.TAG
189-
nginx/objs/**/ngx-debug
190-
nginx/objs/**/ngx-release
188+
# Windows nmake implementation doesn't support .PHONY. Don't cache
189+
# anything make creates because it might not rebuild correctly
191190
key: ${{ runner.os }}-nginx-${{ hashFiles('**/Cargo.lock') }}
192191
restore-keys: ${{ runner.os }}-nginx-
193192

0 commit comments

Comments
 (0)