diff --git a/.github/workflows/msbuild_win7.yml b/.github/workflows/msbuild_win7.yml index 267ae43..8b75ed1 100644 --- a/.github/workflows/msbuild_win7.yml +++ b/.github/workflows/msbuild_win7.yml @@ -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}}