Skip to content

Commit 1e4eb5b

Browse files
bkpoonolegsobolev
authored andcommitted
CI: add [skip cache] check to quick tests
- Add "[skip cache]" to the commit message to tell GitHub Actions to not use the build cache in the quick tests jobs - A new cache will be created with the new build
1 parent 7074fe6 commit 1e4eb5b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/quick.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ jobs:
127127
ls ./modules
128128
df -h
129129
130+
- name: Skip build cache, if requested
131+
if: contains(github.event.head_commit.message, '[skip cache]')
132+
run: |
133+
set -xe
134+
rm -fr ./build
135+
ls
136+
130137
- name: Run bootstrap.py
131138
run: |
132139
set -xe
@@ -274,6 +281,13 @@ jobs:
274281
run: |
275282
del /S /Q .\build\lib\_pycbf.pyd 2> nul
276283
284+
- name: Skip build cache, if requested
285+
if: contains(github.event.head_commit.message, '[skip cache]')
286+
shell: cmd
287+
run: |
288+
rmdir /s /q .\build
289+
dir
290+
277291
- name: Run bootstrap.py
278292
shell: cmd
279293
run: |

0 commit comments

Comments
 (0)