mirror of
https://github.com/actions/setup-python.git
synced 2025-06-08 14:37:00 +09:00
logic update
This commit is contained in:
parent
4260a613f9
commit
1df3e3315a
3 changed files with 6 additions and 11 deletions
|
@ -24,7 +24,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -62,7 +61,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -103,7 +101,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -142,7 +139,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -184,7 +180,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -226,7 +221,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -258,7 +252,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -371,7 +364,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
@ -461,7 +453,6 @@ jobs:
|
||||||
[
|
[
|
||||||
macos-latest,
|
macos-latest,
|
||||||
windows-latest,
|
windows-latest,
|
||||||
ubuntu-20.04,
|
|
||||||
ubuntu-22.04,
|
ubuntu-22.04,
|
||||||
ubuntu-22.04-arm,
|
ubuntu-22.04-arm,
|
||||||
macos-13,
|
macos-13,
|
||||||
|
|
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -96896,7 +96896,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Handle Python < 3.10
|
// Handle Python < 3.10
|
||||||
const baseName = `Python${major}${minor}`;
|
const isFreeThreaded = core.getBooleanInput('freethreaded');
|
||||||
|
const suffix = isFreeThreaded ? 't' : '';
|
||||||
|
const baseName = `Python${major}${minor}${suffix}`;
|
||||||
const pythonPath = path.join(process.env['APPDATA'] || '', 'Python', baseName, 'Scripts');
|
const pythonPath = path.join(process.env['APPDATA'] || '', 'Python', baseName, 'Scripts');
|
||||||
core.addPath(pythonPath);
|
core.addPath(pythonPath);
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,9 @@ export async function useCpythonVersion(
|
||||||
core.addPath(pythonPath);
|
core.addPath(pythonPath);
|
||||||
} else {
|
} else {
|
||||||
// Handle Python < 3.10
|
// Handle Python < 3.10
|
||||||
const baseName = `Python${major}${minor}`;
|
const isFreeThreaded = core.getBooleanInput('freethreaded');
|
||||||
|
const suffix = isFreeThreaded ? 't' : '';
|
||||||
|
const baseName = `Python${major}${minor}${suffix}`;
|
||||||
|
|
||||||
const pythonPath = path.join(
|
const pythonPath = path.join(
|
||||||
process.env['APPDATA'] || '',
|
process.env['APPDATA'] || '',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue