Skip to content

Commit 31a9448

Browse files
author
arman-bd
committed
fix: add save-always to cache steps to save even on job failure
1 parent e99c0e4 commit 31a9448

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/_benchmark.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
key: vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-v7
8484
restore-keys: |
8585
vendor-${{ runner.os }}-
86+
save-always: true
8687

8788
- name: Setup vendor dependencies
8889
if: steps.cache-vendor.outputs.cache-hit != 'true'
@@ -99,6 +100,7 @@ jobs:
99100
key: python-build-${{ runner.os }}-${{ inputs.primary-python }}-${{ hashFiles('setup.py', 'pyproject.toml', 'src/**/*.c', 'src/**/*.cpp', 'src/**/*.h') }}
100101
restore-keys: |
101102
python-build-${{ runner.os }}-${{ inputs.primary-python }}-
103+
save-always: true
102104

103105
- name: Install package
104106
run: pip install -e ".[dev,benchmark]"

.github/workflows/_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ jobs:
119119
key: vcpkg-nghttp2-zlib-${{ runner.os }}-v3
120120
restore-keys: |
121121
vcpkg-nghttp2-zlib-${{ runner.os }}-
122+
save-always: true
122123

123124
- name: Setup vcpkg (Windows)
124125
if: runner.os == 'Windows' && steps.cache-vcpkg.outputs.cache-hit != 'true'
@@ -161,6 +162,7 @@ jobs:
161162
key: vendor-${{ runner.os }}-${{ hashFiles('scripts/setup_vendors.sh') }}-v7
162163
restore-keys: |
163164
vendor-${{ runner.os }}-
165+
save-always: true
164166

165167
- name: Setup vendor dependencies
166168
if: steps.cache-vendor.outputs.cache-hit != 'true'
@@ -185,6 +187,7 @@ jobs:
185187
key: python-build-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'pyproject.toml', 'src/**/*.c', 'src/**/*.cpp', 'src/**/*.h') }}
186188
restore-keys: |
187189
python-build-${{ runner.os }}-${{ matrix.python-version }}-
190+
save-always: true
188191

189192
- name: Install package
190193
run: pip install -e ".[dev]"

0 commit comments

Comments
 (0)