Add rapidjson build job

This commit is contained in:
Syoyo Fujita 2020-05-29 22:21:24 +09:00
parent 73e73bf3c1
commit 7b69c778fe

View File

@ -3,15 +3,30 @@ name: C/C++ CI
on: [push, pull_request]
jobs:
build:
build-linux:
runs-on: ubuntu-latest
name: Buld with gcc
steps:
- uses: actions/checkout@v2
- name: cmake
- name: build
run: |
mkdir build
cd build
cmake ..
make
g++ -std=c++11 -o loader_example loader_example.cc
- name: test
./loader_example
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++ -DTINYGLTF_USE_RAPIDJSON -I./rapidjson/include/rapidjson -std=c++11 -o loader_example loader_example.cc
- name: test
./loader_example