Setup GCS as primary cache option. Fallback to GH if GCS not setup

Basically, do exactly what GH did to save and restore cache with the
exception being that the files are stored on GCS.
This commit is contained in:
Dany Sam 2025-04-10 22:55:13 +05:30
parent 5a3ec84eff
commit 6ec565b197
10 changed files with 1063 additions and 7448 deletions

View file

@ -26,7 +26,8 @@
"@actions/cache": "^4.0.3",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/io": "^1.1.3"
"@actions/io": "^1.1.3",
"@google-cloud/storage": "^7.16.0"
},
"devDependencies": {
"@types/jest": "^27.5.2",
@ -46,6 +47,6 @@
"nock": "^13.2.9",
"prettier": "^2.8.0",
"ts-jest": "^28.0.8",
"typescript": "^4.9.3"
"typescript": "^5.8.3"
}
}