Skip to content

Commit

Permalink
feat: Add the cache option to cache runtime for future runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
shichen85 committed Jun 21, 2024
1 parent 1912e44 commit a0758a2
Show file tree
Hide file tree
Showing 14 changed files with 156,735 additions and 42,243 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- "**.template"
branches:
- main
- develop
workflow_dispatch:

permissions:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ This action allows you to set up the [Igor executable](https://manual.gamemaker.
# A comma separated string for the modules to install
# Optional. Default is 'windows' for windows runner, 'android' for Linux runner, and "ios" for MacOS runner
modules:

# Set to 'true' to cache the runtime for future workflow runs
# Default: 'false'
cache:
```
### Outputs
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ inputs:
description: "Path to a file to overwrite the default devices.json that defines the Device Manager."
modules:
description: "A comma separated string for the modules to install."
cache:
description: "Set to 'true' to cache the runtime for future workflow runs"
outputs:
runtime-dir:
description: "The directory containing the installed runtime."
Expand All @@ -32,3 +34,4 @@ outputs:
runs:
using: "node20"
main: "dist/index.js"
post: "dist/cache-save/index.js"
6 changes: 3 additions & 3 deletions dist/37.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ export const id = 37;
export const ids = [37];
export const modules = {

/***/ 4037:
/***/ 94037:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "toFormData": () => (/* binding */ toFormData)
/* harmony export */ });
/* harmony import */ var fetch_blob_from_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2777);
/* harmony import */ var formdata_polyfill_esm_min_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8010);
/* harmony import */ var fetch_blob_from_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32777);
/* harmony import */ var formdata_polyfill_esm_min_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(68010);



Expand Down
72,048 changes: 72,048 additions & 0 deletions dist/cache-save/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/cache-save/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
126,269 changes: 84,053 additions & 42,216 deletions dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit a0758a2

Please sign in to comment.