Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 25, 2024
1 parent 466949c commit c872812
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/msbuild_win7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,26 +118,31 @@ jobs:
node-version: '14.16'
architecture: 'x86'

- name: Install node-gyp
working-directory: ${{env.GITHUB_WORKSPACE}}
run: npm install -g node-gyp

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.6.7'
python-version: '2.7'
architecture: 'x86'

- name: Set NODE_GYP_FORCE_PYTHON Environment Variable
run: echo "NODE_GYP_FORCE_PYTHON=$(python -c "import sys; print(sys.executable)")" >> $Env:GITHUB_ENV
shell: powershell

- name: Install node-gyp
working-directory: ${{env.GITHUB_WORKSPACE}}
run: npm install -g node-gyp
shell: cmd
env:
NODE_GYP_FORCE_PYTHON: ${{ env.NODE_GYP_FORCE_PYTHON }}
npm_config_python: ${{ env.NODE_GYP_FORCE_PYTHON }}

- name: Build node-gyp
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-nodegyp.bat
shell: cmd
env:
NODE_GYP_FORCE_PYTHON: ${{ env.NODE_GYP_FORCE_PYTHON }}
npm_config_python: ${{ env.NODE_GYP_FORCE_PYTHON }}

- name: Deploy qt and msvc redistribution
working-directory: ${{env.GITHUB_WORKSPACE}}
Expand Down

0 comments on commit c872812

Please sign in to comment.