Skip to content

Commit

Permalink
fix stdout groupping
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed Mar 20, 2020
1 parent 85b85a0 commit 4c43d3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ const core = __importStar(__webpack_require__(470));
class CMakeRunner {
constructor(rootDir, buildDir, options) {
this._cmake = 'cmake';
this._ctest = 'cmake';
this._ctest = 'ctest';
this._options = options;
this._rootDir = rootDir;
this._buildDir = buildDir;
Expand Down Expand Up @@ -1181,19 +1181,19 @@ function run() {
};
const CRunner = new runner.CMakeRunner(srcDir, buildDir, cOptions);
core.startGroup('Configure CMake');
CRunner.configure();
yield CRunner.configure();
core.endGroup();
core.startGroup('Building Project');
CRunner.build();
yield CRunner.build();
core.endGroup();
if (installBuild !== 'false') {
core.startGroup('Installing Build');
CRunner.install();
yield CRunner.install();
core.endGroup();
}
if (runTest !== 'false') {
core.startGroup('Running CTest');
CRunner.test();
yield CRunner.test();
core.endGroup();
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,22 @@ async function run(): Promise<void> {
)

core.startGroup('Configure CMake')
CRunner.configure()
await CRunner.configure()
core.endGroup()

core.startGroup('Building Project')
CRunner.build()
await CRunner.build()
core.endGroup()

if (installBuild !== 'false') {
core.startGroup('Installing Build')
CRunner.install()
await CRunner.install()
core.endGroup()
}

if (runTest !== 'false') {
core.startGroup('Running CTest')
CRunner.test()
await CRunner.test()
core.endGroup()
}
} catch (error) {
Expand Down

0 comments on commit 4c43d3c

Please sign in to comment.