From c8728129e4cc8d17f2ef14a9bde2bccd4ac7541a Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Sun, 25 Feb 2024 18:14:39 +0800 Subject: [PATCH] 1 --- .github/workflows/msbuild_win7.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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}}