2020-09-11 06:15:45 +08:00
|
|
|
name: Performance check on Ubuntu 18.04 CI (GCC 7)
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu-build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-05 02:35:33 +08:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: dependencies/.cache
|
|
|
|
key: ${{ hashFiles('dependencies/CMakeLists.txt') }}
|
2020-09-11 06:15:45 +08:00
|
|
|
- name: Use cmake
|
|
|
|
run: |
|
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
cmake -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX:PATH=destination .. &&
|
|
|
|
cmake --build . --target checkperf &&
|
|
|
|
ctest --output-on-failure -R checkperf ubuntu18-checkperf.yml
|