Skip to content

Commit 67f012f

Browse files
author
Release Action
committed
Build for 2f91e70
1 parent 2f91e70 commit 67f012f

16 files changed

+348
-0
lines changed

dist/bin/glnxa64/run-matlab-command

5.05 MB
Binary file not shown.

dist/bin/license.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2022-2024, The MathWorks, Inc.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
3. In all cases, the software is, and all modifications and derivatives of the
15+
software shall be, licensed to you solely for use in conjunction with
16+
MathWorks products and service offerings.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

dist/bin/maca64/run-matlab-command

5.27 MB
Binary file not shown.

dist/bin/maci64/run-matlab-command

5.39 MB
Binary file not shown.

dist/bin/thirdpartylicenses.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2013 Google. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following disclaimer
11+
in the documentation and/or other materials provided with the
12+
distribution.
13+
* Neither the name of Google Inc. nor the names of its
14+
contributors may be used to endorse or promote products derived from
15+
this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

dist/bin/win64/run-matlab-command.exe

5.21 MB
Binary file not shown.

dist/index.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import * as matlab from "./matlab";
2+
export { matlab };

lib/index.js

+65
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/matlab.d.ts

+38
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

+127
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/matlab.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/script.d.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Generate MATLAB command for changing directories and calling a command in it.
3+
*
4+
* @param dir Directory to change to.
5+
* @param command Command to run in directory.
6+
* @returns MATLAB command.
7+
*/
8+
export declare function cdAndCall(command: string): string;
9+
/**
10+
* Convert a path-like string to MATLAB character vector literal.
11+
*
12+
* @param s Input string.
13+
* @returns Input string in MATLAB character vector literal.
14+
*/
15+
export declare function pathToCharVec(s: string): string;
16+
/**
17+
* Convert an identifier (i.e., a script name) to one that is callable by MATLAB.
18+
*
19+
* @param s Input identifier.
20+
*/
21+
export declare function safeName(s: string): string;

lib/script.js

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/script.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)