@@ -67369,6 +67369,7 @@ function installGraalPy(graalpyVersion, architecture, allowPreReleases, releases
67369
67369
installDir = yield tc.cacheDir(toolDir, 'GraalPy', resolvedGraalPyVersion, architecture);
67370
67370
}
67371
67371
const binaryPath = getGraalPyBinaryPath(installDir);
67372
+ yield createGraalPySymlink(binaryPath, resolvedGraalPyVersion);
67372
67373
yield installPip(binaryPath);
67373
67374
return { installDir, resolvedGraalPyVersion };
67374
67375
}
@@ -67403,6 +67404,19 @@ function getAvailableGraalPyVersions() {
67403
67404
});
67404
67405
}
67405
67406
exports.getAvailableGraalPyVersions = getAvailableGraalPyVersions;
67407
+ function createGraalPySymlink(graalpyBinaryPath, graalpyVersion) {
67408
+ return __awaiter(this, void 0, void 0, function* () {
67409
+ const version = semver.coerce(graalpyVersion);
67410
+ const pythonBinaryPostfix = semver.major(version);
67411
+ const pythonMinor = semver.minor(version);
67412
+ const graalpyMajorMinorBinaryPostfix = `${pythonBinaryPostfix}.${pythonMinor}`;
67413
+ const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
67414
+ core.info('Creating symlinks...');
67415
+ utils_1.createSymlinkInFolder(graalpyBinaryPath, `graalpy${binaryExtension}`, `python${pythonBinaryPostfix}${binaryExtension}`, true);
67416
+ utils_1.createSymlinkInFolder(graalpyBinaryPath, `graalpy${binaryExtension}`, `python${binaryExtension}`, true);
67417
+ utils_1.createSymlinkInFolder(graalpyBinaryPath, `graalpy${binaryExtension}`, `graalpy${graalpyMajorMinorBinaryPostfix}${binaryExtension}`, true);
67418
+ });
67419
+ }
67406
67420
function installPip(pythonLocation) {
67407
67421
return __awaiter(this, void 0, void 0, function* () {
67408
67422
core.info('Installing and updating pip');
0 commit comments