Skip to content

perf(fix): Do not call boost::vector::clear() #146

perf(fix): Do not call boost::vector::clear()

perf(fix): Do not call boost::vector::clear() #146

Workflow file for this run

# The Reactive C++ Toolbox.
# Copyright (C) 2022 Reactive Markets Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: GH Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container: reactivemarkets/build-cpp:0.32.0
strategy:
matrix:
build_type: [Release]
compiler:
- {cc: gcc-13, cxx: g++-13}
steps:
- name: Checkout project
uses: actions/checkout@v2
- name: Set release version
run: |
release_tag=$(echo ${GITHUB_REF##*/})
echo "RELEASE_TAG=$release_tag" >>$GITHUB_ENV
echo "RELEASE_VERSION=${release_tag#v}" >>$GITHUB_ENV
- name: Configure project
run: |
mkdir -p build
cd build
cmake .. -G "Unix Makefiles" \
-DTOOLBOX_BUILD_SHARED=ON \
-DTOOLBOX_VERSION=${{ env.RELEASE_VERSION }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_C_COMPILER=${{ matrix.compiler.cc }} \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
- name: Build documentation
run: cd build && make -j2 tb-doc
- name: Upload documentation
uses: actions/upload-artifact@v1
with:
name: doc
path: build/doc/html
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download documentation
uses: actions/download-artifact@v1
with:
name: doc
path: build/doc/html
- name: Publish documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doc/html