Skip to content

Commit

Permalink
CI: save cache even when build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Feb 8, 2024
1 parent 203f825 commit 2982d74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Cache cache.db
uses: actions/cache@v4
with:
save-always: true
path: |
.cache
key: ${{ runner.os }}-v1-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-${{ steps.date.outputs.day }} ${{ steps.date.outputs.hour }}:${{ steps.date.outputs.minute }}:${{ steps.date.outputs.second }}
Expand Down
1 change: 0 additions & 1 deletion Build/lib/cache-filesystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ export class Cache<S = string> {

if (peeked === promise) {
return promise.then((value) => {
const serializer = 'serializer' in opt ? opt.serializer : identity;
this.set(key, serializer(value), ttl);
return value;
});
Expand Down

0 comments on commit 2982d74

Please sign in to comment.