mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-08 03:03:50 +00:00
Add non-blocking glTF validator CI step
Agent-Logs-Url: https://github.com/syoyo/tinygltf/sessions/12f39a87-22c8-439b-aa5e-c72eade32ee8 Co-authored-by: syoyo <18676+syoyo@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ebc9f765c5
commit
0fb9c9421d
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Configure
|
||||
run: cmake -B build -DTINYGLTF_BUILD_LOADER_EXAMPLE=ON
|
||||
run: cmake -B build -DTINYGLTF_BUILD_LOADER_EXAMPLE=ON -DTINYGLTF_BUILD_V3_VALIDATOR_TOOL=ON
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build
|
||||
@@ -37,6 +37,17 @@ jobs:
|
||||
- name: Run tests
|
||||
run: ctest --test-dir build --output-on-failure
|
||||
|
||||
- name: Run v3 validator on tracked glTF files
|
||||
continue-on-error: true
|
||||
run: |
|
||||
rc=0
|
||||
while IFS= read -r path; do
|
||||
echo "::group::Validate ${path}"
|
||||
./build/tools/validator/tinygltf3-validator "${path}" || rc=1
|
||||
echo "::endgroup::"
|
||||
done < <(git ls-files '*.gltf')
|
||||
exit $rc
|
||||
|
||||
# Linux x64 - Clang 21
|
||||
linux-clang-x64:
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
Reference in New Issue
Block a user