2020-09-11 06:15:45 +08:00
|
|
|
name: Performance check on Ubuntu 20.04 CI (GCC 9)
|
|
|
|
|
2020-11-11 02:52:58 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-09-11 06:15:45 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu-build:
|
2021-01-12 08:08:01 +08:00
|
|
|
if: >-
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
|
|
|
|
! contains(toJSON(github.event.commits.*.message), '[skip github]')
|
2020-09-11 06:15:45 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-12-02 04:31:24 +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 &&
|
2021-01-28 07:37:30 +08:00
|
|
|
cmake -DCMAKE_CXX_FLAGS="-Werror=old-style-cast -pedantic -Wpedantic" -DSIMDJSON_GOOGLE_BENCHMARKS=ON -DSIMDJSON_BUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX:PATH=destination .. &&
|
2020-09-11 06:15:45 +08:00
|
|
|
cmake --build . --target checkperf &&
|
2021-02-27 05:17:05 +08:00
|
|
|
ctest --output-on-failure -R checkperf
|