Merge pull request #345 from syoyo/github-actions-ci-fix

GitHub actions ci fix
This commit is contained in:
Syoyo Fujita 2022-02-25 02:07:46 +09:00 committed by GitHub
commit e59028d68f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,8 @@ jobs:
sudo apt-get install -y mingw-w64 sudo apt-get install -y mingw-w64
x86_64-w64-mingw32-g++ -std=c++11 -o loader_example loader_example.cc x86_64-w64-mingw32-g++ -std=c++11 -o loader_example loader_example.cc
# Windows(x64) + Visual Studio 2019 build # Windows(x64) + Visual Studio 2022 build
# Assume windows-latest have VS2022 installed
build-windows-msvc: build-windows-msvc:
runs-on: windows-latest runs-on: windows-latest
@ -62,7 +63,8 @@ jobs:
run: | run: |
mkdir build mkdir build
cd build cd build
cmake -G "Visual Studio 16 2019" -DTINYGLTF_BUILD_LOADER_EXAMPLE=On -DTINYGLTF_BUILD_GL_EXAMPLES=Off -DTINYGLTF_BUILD_VALIDATOR_EXAMPLE=On .. cmake --help
cmake -G "Visual Studio 17 2022" -A x64 -DTINYGLTF_BUILD_LOADER_EXAMPLE=On -DTINYGLTF_BUILD_GL_EXAMPLES=Off -DTINYGLTF_BUILD_VALIDATOR_EXAMPLE=On ..
cd .. cd ..
- name: Build - name: Build
run: cmake --build build --config Release run: cmake --build build --config Release