Skip to content

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst authored Oct 1, 2023
1 parent 5a1d0a2 commit 1888e51
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,24 @@ jobs:

- name: Build node-gyp
working-directory: ${{env.GITHUB_WORKSPACE}}
run: build-nodegyp.bat
run: |
for /f "usebackq tokens=*" %%i in (`vswhere -version latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
set InstallDir=%%i
)
cd CGANode
if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
"%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=x86
call node-gyp configure build --arch=ia32
mkdir "..\build\Release\"
copy "build\Release\node_cga.node" "..\build\Release\"
)
shell: cmd

- name: Deploy qt and msvc redistribution
Expand Down

0 comments on commit 1888e51

Please sign in to comment.