2021-12-21 08:50:46 +00:00
|
|
|
name: ci-tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-01-14 12:55:13 +00:00
|
|
|
# branches: [ main ]
|
2021-12-21 08:50:46 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
|
|
BUILD_TYPE: Debug
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
|
|
|
runs-on: ubuntu-latest
|
2022-02-19 20:56:09 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# Test of these containers
|
|
|
|
container: ["ubuntu-dev", "alpine-dev"]
|
|
|
|
timeout-minutes: 30
|
2022-01-14 17:22:14 +00:00
|
|
|
container:
|
2022-03-24 13:19:44 +00:00
|
|
|
image: ghcr.io/${{ github.repository_owner }}/${{ matrix.container }}:latest
|
2022-01-14 17:22:14 +00:00
|
|
|
credentials:
|
2022-03-24 13:19:44 +00:00
|
|
|
username: ${{ github.repository_owner }}
|
2022-02-19 06:59:58 +00:00
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2021-12-21 08:50:46 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-21 09:29:59 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2021-12-21 08:50:46 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
uname -a
|
|
|
|
cmake --version
|
2022-01-14 12:55:13 +00:00
|
|
|
mkdir -p ${{github.workspace}}/build
|
2022-01-14 17:22:14 +00:00
|
|
|
- name: Cache build deps
|
|
|
|
id: cache-deps
|
2022-01-14 12:55:13 +00:00
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.ccache
|
2022-01-14 17:22:14 +00:00
|
|
|
${{github.workspace}}/build/_deps
|
|
|
|
key: ${{ runner.os }}-deps-${{ github.sha }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-deps-
|
|
|
|
|
2021-12-21 08:50:46 +00:00
|
|
|
- name: Configure CMake
|
|
|
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
|
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
|
|
run: |
|
2022-01-14 12:55:13 +00:00
|
|
|
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
2022-01-14 17:22:14 +00:00
|
|
|
cd ${{github.workspace}}/build && pwd
|
|
|
|
du -hcs _deps/
|
|
|
|
- name: Build & Test
|
2022-01-14 14:00:11 +00:00
|
|
|
run: |
|
2022-01-14 17:22:14 +00:00
|
|
|
cd ${{github.workspace}}/build
|
2022-02-25 08:03:42 +00:00
|
|
|
ninja src/all
|
2022-01-14 12:55:13 +00:00
|
|
|
ccache --show-stats
|
2022-04-12 13:39:25 +00:00
|
|
|
GLOG_logtostderr=1 GLOG_vmodule=rdb_load=1 ctest -V -R rdb_test
|
2022-01-14 12:55:13 +00:00
|
|
|
echo Run ctest -V -L DFLY
|
2022-01-14 17:22:14 +00:00
|
|
|
#GLOG_logtostderr=1 GLOG_vmodule=transaction=1,engine_shard_set=1
|
2022-04-12 13:39:25 +00:00
|
|
|
GLOG_logtostderr=1 GLOG_vmodule=rdb_load=1 ctest -V -L DFLY
|
2022-01-14 17:22:14 +00:00
|
|
|
# GLOG_logtostderr=1 GLOG_vmodule=transaction=1,engine_shard_set=1 CTEST_OUTPUT_ON_FAILURE=1 ninja server/test
|