name: C/C++ CI on: [push, pull_request] jobs: # compile with older gcc4.8 build-gcc48: runs-on: ubuntu-18.04 name: Build with gcc 4.8 steps: - name: Checkout uses: actions/checkout@v1 - name: Build run: | sudo apt-get update sudo apt-get install -y build-essential sudo apt-get install -y gcc-4.8 g++-4.8 g++-4.8 -std=c++11 -o loader_example loader_example.cc - name: NoexceptBuild run: | g++-4.8 -DTINYGLTF_NOEXCEPTION -std=c++11 -o loader_example loader_example.cc - name: RapidjsonBuild run: | git clone https://github.com/Tencent/rapidjson g++-4.8 -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -o loader_example loader_example.cc build-linux: runs-on: ubuntu-latest name: Buld with gcc steps: - uses: actions/checkout@v2 - name: build run: | g++ -std=c++11 -o loader_example loader_example.cc - name: test run: | ./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 name: Buld with gcc + rapidjson steps: - uses: actions/checkout@v2 - 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: 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