Skip to content

Commit aa06783

Browse files
dionyzizclaude
andcommitted
Use ubuntu-22.04 and apt-install python2 for node-gyp
Python 2.7 is no longer available via setup-python on Ubuntu 24.04. Use ubuntu-22.04 runner and install python2 via apt instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c951e4a commit aa06783

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@ concurrency:
1515

1616
jobs:
1717
build:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- uses: actions/checkout@v4
2121

2222
- uses: actions/setup-node@v4
2323
with:
2424
node-version: '8'
2525

26-
- uses: actions/setup-python@v5
27-
with:
28-
python-version: '2.7'
26+
- name: Install Python 2 for node-gyp
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y python2
30+
sudo ln -sf /usr/bin/python2 /usr/bin/python
31+
npm config set python /usr/bin/python2
2932
3033
- run: npm install
3134

0 commit comments

Comments
 (0)