Skip to content

upd: sequence and sizeof_max #160

upd: sequence and sizeof_max

upd: sequence and sizeof_max #160

Workflow file for this run

name: CTest
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
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-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
# - name: Get version
# run: echo "VERSION=$(python ./version.py get -f vcpkg.json)" >> $GITHUB_ENV
- 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: >
cmake -B ${{ github.workspace }}/build
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Install generator
run: |
wget -O gen.zip https://github.com/chocolacula/easy_reflection_cpp/releases/download/3.0.0/er_gen-ubuntu22-x64.zip
unzip gen.zip -d output
chmod +x output/er_gen
- name: Build
run: cmake --build ./build -j $(grep -c 'processor' /proc/cpuinfo) -t tests
- name: Test
working-directory: ${{ github.workspace }}/build
run: ctest --rerun-failed --output-on-failure