14 Commits

Author SHA1 Message Date
Tom Finegan
7d62f1f26f
Disable optimizations for gltf_decoder.cc in MSVC builds. (#829)
Not really sure who is to blame, but in optimized builds from MSVC
gltf_decoder.cc appears to be getting garbage values back
from TinyGLTF when it parses the materials for
testdata/.../three_meshes_two_materials_one_no_material.gltf

Since there's no certainty about whether this is limited to this
particular file, just disable optimizations for
src/draco/io/gltf_decoder.cc in all MSVC build configurations.
2022-03-10 17:51:38 -08:00
Tom Finegan
34c693fe78
Add transcoder testing to Draco's Github CI tests. (#821)
This enabled CI testing of transcoder configs and includes a few minor
Windows-only bug fixes. Note that this adds flags to skip 
GltfDecoderTest.ThreeMeshesOneNoMaterialMesh for Windows 
MSVC CI builds. See https://github.com/google/draco/issues/826 for
details.

Windows specific updates (these do impact non-Windows builds, but
are essentially a no-op there):
- Use a local dupe of a constant to avoid DLL linkage issues on Windows
  in the GLTF encoder test..
- Define DRACO_PI to avoid M_PI and entertaining include ordering
  issues related to _USE_MATH_DEFINES and interactions between
  <cmath> and <math.h> on Windows (fun include guards and order
  related things). This is done in core/constants.h.
2022-03-03 10:08:03 -08:00
Tom Finegan
0d1633e3cc
Use windows-2019 builders. (#813)
Specify the windows-2019 builders for windows builds to avoid breaking
due to visual studio 16 2019 not being present in the windows-2022 images.
2022-02-15 17:02:56 -08:00
Tom Finegan
e5d9b61308
More CI updates (#808)
- Run test builds on push to master and nightly.
- Update the badge link to point to the actions page
- Use Github's generated badge markdown.
2022-02-08 12:25:33 -08:00
Tom Finegan
b7655f7391
Replace the existing test workflow with draco-ci from ci.yml. (#806)
This replaces test.yml with ci.yml and renames the test to draco-ci.

A Github PR with this all put together exists at the following link:
https://github.com/google/draco/pull/806

An example draco-ci test summary exists at this link:
https://github.com/google/draco/actions/runs/1789061363

- Add the following test configurations in a job named
  draco-tests.

  test-macos-make-release-shared
  test-macos-make-release-static
  test-macos-xcode-release-shared
  test-macos-xcode-release-static
  test-ubuntu-make-release-shared
  test-ubuntu-make-release-static
  test-windows-msvc-release-shared
  test-windows-msvc-release-static
  test-windows-make-release-shared
  test-windows-make-release-static

  Each configuration name is intended to be self documenting.
  All configurations build Draco with tests enabled, and then
  run the tests.

- Add the following test configurations in a job named
  draco-install-tests:

  install-test-ubuntu-make
  install-test-macos-make
  install-test-macos-xcode
  install-test-windows-make
  install-test-windows-msvc

  Each configuration runs test.py in verbose mode to allow for
  failure diagnostics.

Some additional changes to make all this work (and improve usability):
- draco-config.cmake now defines DRACO_LIBRARY_DLL and DRACO_FOUND.
  - DRACO_LIBRARY_DLL will contain the full path to the Draco DLL on systems that
     produce DLL files (aka Windows).
- test.py now streams output in verbose mode
2022-02-03 13:05:31 -08:00
Tom Finegan
3b3f1093ce
draco: Run our test action only on pull requests. (#776) 2021-12-06 11:52:47 -08:00
Tom Finegan
5272348d0f Revert "Add CIFuzz integration"
This reverts commit 6b6f90085670fb1b0ecba0c8ed3e93f6ef7d9140.
2021-12-03 18:22:44 -08:00
David Korczynski
6b6f900856 Add CIFuzz integration 2021-12-03 11:08:04 -08:00
Tom Finegan
c880d79457
Add googletest as a git submodule. (#756)
- Add the submodule.
- Update the build to use googletest sources from the submodule.
- Update the github test build checkout action to include submodules.
- Update build instructions to include the submodule update.
2021-10-25 11:06:21 -07:00
Tom Finegan
92d66ab0e9 Use latest available OS images in GitHub actions. 2021-03-16 11:42:36 -07:00
Tom Finegan
27f77e1b89 Set workflow os explicitly.
Google policy requires that specific os versions are targeted when using GitHub actions.
2021-02-09 11:30:06 -08:00
Quim Muntal
26ee555fc6 add gh actions badge 2021-02-09 11:30:06 -08:00
Quim Muntal
d2b1798192 add make 2021-02-09 11:30:06 -08:00
Quim Muntal
44276bfd61 add gh_actions 2021-02-09 11:30:06 -08:00