Skip to content

Commit

Permalink
fix(ci): pin Python 3.11 on the CI
Browse files Browse the repository at this point in the history
GH Actions comes with Python 3.12 by default if version 3.x specified.
`distutils` has been removed from 3.12, which causes a build problem
with `node-gyp`. This commit pins the Python version to 3.11 on the CI.

Ref: nodejs/node-gyp#2869

Closes eclipse-theia#13008

Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
Akos Kitta committed Oct 19, 2023
1 parent d635d6f commit 2e17a1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'

- name: Use Python 3.x
- name: Use Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.11'

- name: Install and Build
shell: bash
Expand Down Expand Up @@ -67,10 +67,10 @@ jobs:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'

- name: Use Python 3.x
- name: Use Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.11'

- name: Install
shell: bash
Expand Down

0 comments on commit 2e17a1d

Please sign in to comment.