Skip to content

Commit fba0bc6

Browse files
author
Release Action
committed
Build for aebe6ad
1 parent aebe6ad commit fba0bc6

16 files changed

Lines changed: 758 additions & 0 deletions

dist/index.js

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

lib/buildSummary.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export declare function addSummary(taskSummaryTableRows: string[][], actionName: string): void;
2+
export declare function getSummaryRows(buildSummary: string): any[];
3+
export declare function interpretSkipReason(skipReason: string): string;
4+
export declare function processAndAddBuildSummary(runnerTemp: string, runId: string, actionName: string): void;

lib/buildSummary.js

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

lib/buildSummary.js.map

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

lib/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as testResultsSummary from "./testResultsSummary";
2+
import * as buildSummary from "./buildSummary";
3+
import * as matlab from "./matlab";
4+
export { testResultsSummary, buildSummary, matlab };

lib/index.js

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

lib/index.js.map

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

lib/matlab.d.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Helper interface to represent a MATLAB script.
3+
*/
4+
export interface HelperScript {
5+
dir: string;
6+
command: string;
7+
}
8+
/**
9+
* Type of a function that executes a command on a runner and returns the error
10+
* code.
11+
*/
12+
export type ExecFn = (command: string, args?: string[]) => Promise<number>;
13+
/**
14+
* Generate a MATLAB script in the temporary directory that runs a command in
15+
* the workspace.
16+
*
17+
* @param workspaceDir CI job workspace directory
18+
* @param command MATLAB command to run
19+
*/
20+
export declare function generateScript(workspaceDir: string, command: string): Promise<HelperScript>;
21+
/**
22+
* Run a HelperScript in MATLAB.
23+
*
24+
* Create the HelperScript using `generateScript`.
25+
*
26+
* @param hs HelperScript pointing to the script containing the command
27+
* @param platform Operating system of the runner (e.g., "win32" or "linux")
28+
* @param architecture Architecture of the runner (e.g., "x64")
29+
* @param fn ExecFn that will execute a command on the runner
30+
*/
31+
export declare function runCommand(hs: HelperScript, platform: string, architecture: string, fn: ExecFn, args?: string[]): Promise<void>;
32+
/**
33+
* Get the path of the script containing RunMATLABCommand for the host OS.
34+
*
35+
* @param platform Operating system of the runner (e.g., "win32" or "linux")
36+
* @param architecture Architecture of the runner (e.g., "x64")
37+
*/
38+
export declare function getRunMATLABCommandScriptPath(platform: string, architecture: string): string;

lib/matlab.js

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

lib/matlab.js.map

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

0 commit comments

Comments
 (0)