Skip to content

Commit

Permalink
ci: attempt to fix issues related to old node-gyp + new Python
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Dec 25, 2024
1 parent 26db9d4 commit 711d569
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Check Node.js version
run: node -pe process.versions
- name: Install Python 2.7
if: ${{ matrix.node-version == '10.7.0' }}
- name: Check npm version
run: npm -v
- name: Install latest node-gyp (node <16.x)
if: ${{ contains(fromJSON('["10.7.0", "10.x", "12.x", "14.x"]'), matrix.node-version) }}
run: |
sudo apt install python2.7
echo "PYTHON=$(which python2.7)" >> "$GITHUB_ENV"
npm config get prefix
sudo npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest
node-gyp -v
- name: Install module
run: npm install
- name: Run tests
Expand All @@ -51,6 +54,8 @@ jobs:
python-version: '3.10'
- name: Check Node.js version
run: node -pe process.versions
- name: Check npm version
run: npm -v
- name: Install module
run: npm install
- name: Run tests
Expand All @@ -71,6 +76,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Check Node.js version
run: node -pe process.versions
- name: Check npm version
run: npm -v
- name: Install module
run: npm install
- name: Run tests
Expand Down

0 comments on commit 711d569

Please sign in to comment.