diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 4640f980..05d87fdb 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -81,6 +81,22 @@ jobs: - name: Build run: cmake --build build --config Release + # Windows(32bit) + Visual Studio 2019 build + build-windows-msvc: + + runs-on: windows-latest + name: Build for Windows(Win32, MSVC) + + # Use system installed cmake + # https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Configure + run: .\vcsetup-32bit.bat + - name: Build + run: cmake --build build_win32 --config Release + # Android(aarch64) build build-android: diff --git a/vcsetup-32bit.bat b/vcsetup-32bit.bat new file mode 100644 index 00000000..2ac8204f --- /dev/null +++ b/vcsetup-32bit.bat @@ -0,0 +1,6 @@ +rmdir /s /q build_win32 +mkdir build_win32 + +rem cmake -G "Visual Studio 16 2019" -A Win32 -DTINYUSDZ_WITH_OPENSUBDIV=On -Bbuild_win32 -S. + +cmake -G "Visual Studio 17 2022" -A Win32 -DTINYUSDZ_WITH_OPENSUBDIV=On -Bbuild_win32 -S.