Skip to content

Commit e2c1dd3

Browse files
committed
fix: configurable runner tool cache + disabled by default
Runner tool cache can fill up the disk space (e.g. for LLVM), so it is disabled by default
1 parent 76b3fd3 commit e2c1dd3

File tree

11 files changed

+94
-85
lines changed

11 files changed

+94
-85
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ description: "Install all the tools required for building and testing C++/C proj
33
author: "Amin Yahyaabadi"
44

55
inputs:
6+
cache-tools:
7+
description: "If should cache the installed tools? (Default: false)"
8+
required: false
69
compiler:
710
description: "The compiler to use and its optional version separated by - e.g. llvm-13.0.0"
811
required: false

dist/actions/setup-cpp.js

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmake/__tests__/cmake.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe("setup-cmake", () => {
99
let directory: string
1010
beforeAll(async () => {
1111
directory = await setupTmpDir("cmake")
12+
process.env.CACHE_TOOLS = "true"
1213
})
1314

1415
it("should setup CMake", async () => {

src/ninja/__tests__/ninja.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe("setup-ninja", () => {
1414
let directory: string
1515
beforeEach(async () => {
1616
directory = await setupTmpDir("ninja")
17+
process.env.CACHE_TOOLS = "true"
1718
})
1819

1920
it("should setup Ninja", async () => {

src/task/__tests__/task.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ describe("setup-task", () => {
88
let directory: string
99
beforeAll(async () => {
1010
directory = await setupTmpDir("task")
11+
process.env.CACHE_TOOLS = "true"
1112
})
1213

1314
it("should setup task", async () => {

0 commit comments

Comments
 (0)