Skip to content

moved special_characters inside function body #498

moved special_characters inside function body

moved special_characters inside function body #498

Workflow file for this run

# the docker image is build for linux/amd64 and pushed to docker hub:
# docker buildx build --platform linux/amd64 . -t those90/ci-image:1.0
# docker push those90/ci-image:1.0
name: CI
on:
push:
branches: [ "**" ]
jobs:
gcc:
runs-on: ubuntu-latest
container: those90/ci-image:1.0
env:
HOME: /root
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: build
run: |
conan install . -of ./build_gcc --build missing
cmake -S . -B ./build_gcc -DCMAKE_TOOLCHAIN_FILE=./build_gcc/conan_toolchain.cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc
cmake --build ./build_gcc -j12
- name: unittests
run: ./build_gcc/bin/unittests
- name: example
run: ./build_gcc/bin/example ./examples
Clang:
runs-on: ubuntu-latest
container: those90/ci-image:1.0
env:
HOME: /root
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: build
run: |
conan install . -of ./build_clang --build missing -pr clang
cmake -S . -B ./build_clang -DCMAKE_TOOLCHAIN_FILE=./build_clang/conan_toolchain.cmake -DCMAKE_CXX_COMPILER=clang++-17 -DCMAKE_C_COMPILER=clang-17
cmake --build ./build_clang -j12
- name: unittests
run: ./build_clang/bin/unittests
- name: examples
run: ./build_clang/bin/example ./examples
MSVC:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install pip tools
run: |
python -m pip install --upgrade pip
pip install cmake conan
- name: Conan
run: |
conan --version
conan profile detect
powershell -Command "(gc C:\Users\runneradmin\.conan2\profiles\default) -replace 'compiler.cppstd=14', 'compiler.cppstd=20' | Out-File -encoding ASCII C:\Users\runneradmin\.conan2\profiles\default"
powershell -Command "(gc C:\Users\runneradmin\.conan2\profiles\default) -replace 'compiler.runtime=dynamic', 'compiler.runtime=static' | Out-File -encoding ASCII C:\Users\runneradmin\.conan2\profiles\default"
conan profile show
- name: Build
run: |
conan install . -of build --build missing
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=".\build\conan_toolchain.cmake" -DMSVC_STATIC=ON
cmake --build ./build --config Release -j12
- name: Unittests
run: .\build\bin\Release\unittests.exe
- name: Example
run: .\build\bin\Release\example.exe