Skip to content

Commit

Permalink
Try setting env var
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Jul 31, 2023
1 parent 4b523f5 commit 51e87b6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/node-gyp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,19 @@ jobs:
run: |
rm -rf node-gyp/gyp
cp -r gyp-next node-gyp/gyp
- name: Run tests
- name: Run tests (POSIX)
if: runner.os != 'Windows'
shell: bash
run: |
export NODE_GYP_FORCE_PYTHON="${pythonLocation}"
echo "Python is at ${pythonLocation}"
cd node-gyp
npm test
- name: Run tests (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$env:NODE_GYP_FORCE_PYTHON = "$env:pythonLocation"
echo "Python is at ${env:NODE_GYP_FORCE_PYTHON}"
cd node-gyp
npm test

0 comments on commit 51e87b6

Please sign in to comment.