name: Ubuntu 18.04 CI (GCC 7) on: [push, pull_request] jobs: ubuntu-build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Setup cmake uses: jwlawson/actions-setup-cmake@v1.0 with: cmake-version: '3.9.x' - name: Use cmake run: | mkdir build && cd build && cmake -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX:PATH=destination .. && cmake --build . && ctest -j --output-on-failure -E checkperf && make install && echo -e '#include \nint main(int argc,char**argv) {simdjson::dom::parser parser;simdjson::dom::element tweets = parser.load(argv[1]); }' > tmp.cpp && c++ -Idestination/include -Ldestination/lib -std=c++17 -Wl,-rpath,destination/lib -o linkandrun tmp.cpp -lsimdjson && ./linkandrun jsonexamples/twitter.json