add licenses

This commit is contained in:
Dmitry Shibanov 2022-05-09 10:48:49 +02:00
parent 71940d6132
commit 5dd8329ef6
10 changed files with 52 additions and 58 deletions

View file

@ -39,13 +39,21 @@ async function run() {
let pythonVersion: string;
const arch: string = core.getInput('architecture') || os.arch();
if (isPyPyVersion(version)) {
const installed = await finderPyPy.findPyPyVersion(version, arch, checkLatest);
const installed = await finderPyPy.findPyPyVersion(
version,
arch,
checkLatest
);
pythonVersion = `${installed.resolvedPyPyVersion}-${installed.resolvedPythonVersion}`;
core.info(
`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`
);
} else {
const installed = await finder.useCpythonVersion(version, arch, checkLatest);
const installed = await finder.useCpythonVersion(
version,
arch,
checkLatest
);
pythonVersion = installed.version;
core.info(`Successfully set up ${installed.impl} (${pythonVersion})`);
}