ci: pin compatible node and python runtimes
This commit is contained in:
1 parent
b4d127f393
commit
854f3bbb5f
2 files changed
+17
-5
No files matched your search
@@ -51,9 +51,13 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Verify macOS runner architecture
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -88,9 +92,13 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Verify macOS runner architecture
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -125,9 +133,13 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm run build:win
|
||||
|
||||
|
||||
@@ -73,9 +73,9 @@ const resolveBootstrapPython = () => {
|
||||
const candidates =
|
||||
process.platform === 'win32'
|
||||
? [
|
||||
{ command: 'py', args: ['-3'] },
|
||||
{ command: 'python', args: [] },
|
||||
{ command: 'python3', args: [] }
|
||||
{ command: 'python3', args: [] },
|
||||
{ command: 'py', args: ['-3'] }
|
||||
]
|
||||
: [
|
||||
{ command: 'python3.12', args: [] },
|
||||
|
||||
Reference in new issue
Block a user