Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't prepend cuda- prefix to ubuntu package names
- When writing this tool I noticed the ubuntu packages had the "cuda-" prefix. - This is not the case for all packages, so let's add a new argument called "non-cuda-sub-packages", which behaves the same as "sub-packages", except that it only works for ubuntu network installs, and that it doesn't prefix the packages with "cuda-". - Fixes #249.
- Loading branch information
Showing
5 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as core from '@actions/core' | ||
|
||
export async function parsePackages( | ||
subPackages: string, | ||
parameterName: string | ||
): Promise<string[]> { | ||
let subPackagesArray: string[] = [] | ||
try { | ||
subPackagesArray = JSON.parse(subPackages) | ||
} catch (error) { | ||
const errString = `Error parsing input '${parameterName}' to a JSON string array: ${subPackages}` | ||
core.debug(errString) | ||
throw new Error(errString) | ||
} | ||
return subPackagesArray | ||
} |