Skip to content

virtual_shared_ptr #481

virtual_shared_ptr

virtual_shared_ptr #481

Workflow file for this run

name: CI
env:
BUILD_TYPE: Debug Release
on: [push, pull_request, workflow_dispatch]
jobs:
ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++-10, g++-11, clang++-11, clang++-12]
standard: [17, 20]
config: [Debug, Release]
steps:
- uses: actions/checkout@v3
- name: Install g++-11
if: ${{ matrix.compiler == 'g++-11' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-11
- name: Install clang-11
if: ${{ matrix.compiler == 'clang++-11' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install clang-11
- name: Install Boost
if: ${{ matrix.standard == 17 }}
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: Configure
run: |
echo "#define YOMM2_BENCHMARK_HIERARCHIES 10" > tests/benchmarks_parameters.hpp
mkdir cmake.bld
cd cmake.bld
cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DYOMM2_ENABLE_TESTS=1 -DYOMM2_ENABLE_BENCHMARKS=1
- name: Build
run: VERBOSE=1 cmake --build cmake.bld
- name: Unit Tests
run: |
cd cmake.bld
ctest --rerun-failed --output-on-failure .
- name: Examples
run: |
pwd
cd cmake.bld/examples
find . -type f -executable -exec {} \;
- name: Benchmarks
if: ${{ matrix.config == 'Release' }}
run: |
cd cmake.bld/tests
../../dev/run-benchmarks-here
ubuntu-mix-debug-release:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++-10, clang++-12]
standard: [17]
config: [ReleaseDebug, DebugRelease]
steps:
- uses: actions/checkout@v3
- name: Install Boost
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: Configure
run: |
echo "#define YOMM2_BENCHMARK_HIERARCHIES 10" > tests/benchmarks_parameters.hpp
mkdir cmake.bld
cd cmake.bld
cmake .. -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DYOMM2_ENABLE_TESTS=1 -DYOMM2_ENABLE_BENCHMARKS=1
- name: Build
run: VERBOSE=1 cmake --build cmake.bld
- name: Unit Tests
run: |
cd cmake.bld
ctest --rerun-failed --output-on-failure .
- name: Examples
run: |
cd cmake.bld/examples
find . -type f -executable -exec {} \;
ubuntu-shared:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++-10, g++-11, clang++-11, clang++-12]
standard: [17]
steps:
- uses: actions/checkout@v3
- name: Install g++-11
if: ${{ matrix.compiler == 'g++-11' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-11
- name: Install clang-11
if: ${{ matrix.compiler == 'clang++-11' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install clang-11
- name: Install Boost
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: Configure
run: |
mkdir cmake.bld
cd cmake.bld
cmake .. -DYOMM2_SHARED=1 -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DYOMM2_ENABLE_TESTS=1
- name: Build
run: VERBOSE=1 cmake --build cmake.bld
- name: Unit Tests
run: |
cd cmake.bld
ctest --rerun-failed --output-on-failure .
- name: Examples
run: |
pwd
cd cmake.bld/examples
find . -type f -executable -exec {} \;
windows:
runs-on: windows-latest
strategy:
matrix:
config: [Debug, Release, ReleaseDebug, DebugRelease]
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: Configure
run: |
echo "#define YOMM2_BENCHMARK_HIERARCHIES 10" > tests/benchmarks_parameters.hpp
mkdir cmake.bld
cd cmake.bld
cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DYOMM2_ENABLE_TESTS=1
- name: Build
run: |
cd cmake.bld
nmake
- name: Unit Tests
run: |
cd cmake.bld
$env:YOMM2_TRACE = 1
ctest --rerun-failed --output-on-failure .
$global:LASTEXITCODE = 0
# - name: Examples
# run: |
# cd cmake.bld/examples
# find . -type f -executable -exec {} \;
# - name: Benchmarks
# if: ${{ matrix.config == 'Release' }}
# run: |
# cd cmake.bld/tests
# benchmarks
windows-shared:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: Configure
run: |
mkdir cmake.bld
cd cmake.bld
cmake .. -G "NMake Makefiles" -DYOMM2_SHARED=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DYOMM2_ENABLE_TESTS=1
- name: Build
run: |
cd cmake.bld
nmake
- name: Unit Tests
run: |
cd cmake.bld
$env:YOMM2_TRACE = 1
ctest --rerun-failed --output-on-failure .
$global:LASTEXITCODE = 0
# - name: Examples
# run: |
# cd cmake.bld/examples
# find . -type f -executable -exec {} \;
# - name: Benchmarks
# if: ${{ matrix.config == 'Release' }}
# run: |
# cd cmake.bld/tests
# benchmarks
mac:
runs-on: macOS-latest
strategy:
matrix:
# config: [Debug, Release, ReleaseDebug, DebugRelease]
config: [Debug, Release]
steps:
- uses: actions/checkout@v3
- name: Configure
run: |
echo "#define YOMM2_BENCHMARK_HIERARCHIES 10" > tests/benchmarks_parameters.hpp
mkdir cmake.bld
cd cmake.bld
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DYOMM2_ENABLE_TESTS=1 -DYOMM2_ENABLE_BENCHMARKS=1
- name: Build
run: |
cd cmake.bld
ld --help
export VERBOSE=1
make
- name: Unit Tests
run: |
cd cmake.bld
ctest --rerun-failed --output-on-failure .
- name: Examples
run: |
cd cmake.bld/examples
find . -type f -perm +0111 -exec {} \;
# ./accept_no_visitors
# ./adventure
# ./asteroids
# ./matrix
# ./next
# ./synopsis
- name: Benchmarks
if: ${{ matrix.config == 'Release' }}
run: |
cd cmake.bld/tests
../../dev/run-benchmarks-here