Skip to content

Commit ac29e1b

Browse files
update ccache usage
1 parent 6f0cf83 commit ac29e1b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58403,8 +58403,7 @@ async function SetupCCache() {
5840358403
}
5840458404
}
5840558405
if (isFound) {
58406-
process.env.CC = 'ccache clang';
58407-
process.env.CXX = 'ccache clang++';
58406+
await (0, exec_1.exec)('ccache', ['-s']);
5840858407
core.info('ccache is enabled for Xcode builds.');
5840958408
}
5841058409
else {
@@ -59353,6 +59352,7 @@ async function execXcodeBuild(xcodeBuildArgs) {
5935359352
if (exitCode !== 0) {
5935459353
throw new Error(`xcodebuild exited with code: ${exitCode}`);
5935559354
}
59355+
await (0, exec_1.exec)('ccache', ['-s']);
5935659356
}
5935759357
async function execWithXcBeautify(xcodeBuildArgs) {
5935859358
try {

dist/index.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/utilities.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ export async function SetupCCache() {
6868
}
6969
}
7070
if (isFound) {
71-
process.env.CC = 'ccache clang';
72-
process.env.CXX = 'ccache clang++';
71+
await exec('ccache', ['-s']);
7372
core.info('ccache is enabled for Xcode builds.');
7473
} else {
7574
throw new Error('ccache is not available. Please install ccache to enable caching for Xcode builds.');

src/xcode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ async function execXcodeBuild(xcodeBuildArgs: string[]) {
942942
if (exitCode !== 0) {
943943
throw new Error(`xcodebuild exited with code: ${exitCode}`);
944944
}
945+
await exec('ccache', ['-s']);
945946
}
946947

947948
async function execWithXcBeautify(xcodeBuildArgs: string[]) {

0 commit comments

Comments
 (0)