Skip to content

Commit

Permalink
- fix debug output to logs
Browse files Browse the repository at this point in the history
- fix link to C++ project template
  • Loading branch information
lukka committed Mar 31, 2023
1 parent ec2db93 commit a5d1f94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Quickstart with a C++ project template

Take a look at this [C++ project template](https://github.com/lukka/CppCMakeVcpkgTemplate) that applies all the following instructions, but also shows how to create a __pure__ workflow without using special GitHub action that you cannot run locally on your development machine, but directly using the tools (`CMake`, `Ninja`, `vcpkg`, `C++` compilers) you already use daily.
Take a look at this [C++ project template](https://github.com/lukka/CppCMakeVcpkgTemplate/tree/v11) that applies all the following instructions, but also shows how to create a __pure__ workflow without using special GitHub action that you cannot run locally on your development machine, but directly using the tools (`CMake`, `Ninja`, `vcpkg`, `C++` compilers) you already use daily.

# [The **run-vcpkg@v11** action](https://github.com/marketplace/actions/run-vcpkg)

Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ class VcpkgAction {
}
saveCache(isCacheHit, keys, cachedPaths, doNotCache, successStep) {
return __awaiter(this, void 0, void 0, function* () {
this.baseUtilLib.baseLib.info('saveCache()<<');
this.baseUtilLib.baseLib.debug('saveCache()<<');
yield this.baseUtilLib.wrapOp('Save vcpkg into the GitHub Action cache (only the tool, not the built packages which are saved by vcpkg`s Binary Caching on GitHub Action`s cache).', () => __awaiter(this, void 0, void 0, function* () {
return yield vcpkgutil.Utils.saveCache(this.baseUtilLib.baseLib, this.doNotCache, keys, isCacheHit ? keys.primary : null, /* Only the primary cache could have hit, since there are no restore keys. */ cachedPaths);
}));
this.baseUtilLib.baseLib.info('saveCache()>>');
this.baseUtilLib.baseLib.debug('saveCache()>>');
});
}
getCurrentDirectoryForRunningVcpkg(vcpkgJsonFile) {
Expand Down
4 changes: 2 additions & 2 deletions src/vcpkg-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ export class VcpkgAction {

private async saveCache(isCacheHit: boolean, keys: baseutillib.KeySet, cachedPaths: string[], doNotCache: boolean,
successStep: boolean): Promise<void> {
this.baseUtilLib.baseLib.info('saveCache()<<');
this.baseUtilLib.baseLib.debug('saveCache()<<');
await this.baseUtilLib.wrapOp('Save vcpkg into the GitHub Action cache (only the tool, not the built packages which are saved by vcpkg`s Binary Caching on GitHub Action`s cache).',
async () =>
await vcpkgutil.Utils.saveCache(this.baseUtilLib.baseLib, this.doNotCache, keys,
isCacheHit ? keys.primary : null, /* Only the primary cache could have hit, since there are no restore keys. */
cachedPaths)
);
this.baseUtilLib.baseLib.info('saveCache()>>');
this.baseUtilLib.baseLib.debug('saveCache()>>');
}

private async getCurrentDirectoryForRunningVcpkg(vcpkgJsonFile: string | null): Promise<string | null> {
Expand Down

0 comments on commit a5d1f94

Please sign in to comment.