From ddfa1f2f0b31392909f957d22f95ce8a50366569 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sat, 30 May 2020 01:56:35 +0900 Subject: [PATCH] Fix workflow --- .github/workflows/c-cpp.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 4bfe2db..966d0f5 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -17,6 +17,19 @@ jobs: - name: test ./loader_example + - name: tests + run: | + cd tests + g++ -I../ -std=c++11 -g -O0 -o tester tester.cc + ./tester + + - name: noexcept_tests + run: | + cd tests + g++ -DTINYGLTF_NOEXCEPTION -I../ -std=c++11 -g -O0 -o tester_noexcept tester.cc + ./tester_noexcept + + build-rapidjson-linux: runs-on: ubuntu-latest @@ -27,6 +40,22 @@ jobs: - name: build run: | git clone https://github.com/Tencent/rapidjson + g++ -v g++ -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -o loader_example loader_example.cc - - name: test + + - name: loader_example_test + run: | ./loader_example + + - name: tests + run: | + cd tests + g++ -DTINYGLTF_USE_RAPIDJSON -I../../rapidjson/include/rapidjson -I../ -std=c++11 -g -O0 -o tester tester.cc + ./tester + + - name: noexcept_tests + run: | + cd tests + g++ -DTINYGLTF_USE_RAPIDJSON -I../../rapidjson/include/rapidjson -DTINYGLTF_NOEXCEPTION -I../ -std=c++11 -g -O0 -o tester_noexcept tester.cc + ./tester_noexcept +