Skip to content

Plugin: add INSTALL_RPATH in CMake #215

Plugin: add INSTALL_RPATH in CMake

Plugin: add INSTALL_RPATH in CMake #215

Workflow file for this run

name: Doxygen
on: [push]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
if: false
strategy:
matrix:
os: [Ubuntu-20.04]
runs-on: ${{matrix.os}}
env:
BUILD_TYPE: Release
SOURCE_DIR: ${{github.workspace}}/.cache/source
TOOSL_DIR: ${{github.workspace}}/.cache/tools
INSTALL_DIR: ${{github.workspace}}/.cache/install_ubuntu
RabbitRemoteControl_VERSION: v0.0.27
DOXYGEN_VERSION: 1.9.5
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: make_directory
run: |
cmake -E make_directory ${{env.SOURCE_DIR}}
cmake -E make_directory ${{env.TOOSL_DIR}}
cmake -E make_directory ${{env.INSTALL_DIR}}
- name: Cache installed
uses: actions/cache@v2
id: cache-installed
with:
path: |
${{env.TOOSL_DIR}}
key: cache-installed-doxygen-${{matrix.os}}
- name: git clone RabbitCommon
working-directory: ${{env.SOURCE_DIR}}
run: git clone https://github.com/KangLin/RabbitCommon.git
- name: apt helper action
uses: ryankurte/[email protected]
with:
# architectures to pass to dpkg --add-architecture
#architectures: # optional
# apt packages to install
packages: cmake build-essential graphviz qttools5-dev qttools5-dev-tools qtbase5-dev qtbase5-dev-tools
- name: Download doxygen
run: |
if [ ! -d ${{env.TOOSL_DIR}}/doxygen-${{env.DOXYGEN_VERSION}} ]; then
cd ${{env.TOOSL_DIR}}
wget https://www.doxygen.nl/files/doxygen-${{env.DOXYGEN_VERSION}}.linux.bin.tar.gz
tar xzf doxygen-${{env.DOXYGEN_VERSION}}.linux.bin.tar.gz
fi
sudo cp ${{env.TOOSL_DIR}}/doxygen-${{env.DOXYGEN_VERSION}}/bin/doxygen /usr/bin/doxygen
- name: build doxygen
working-directory: ${{github.workspace}}
env:
RabbitCommon_DIR: ${{env.SOURCE_DIR}}/RabbitCommon
BUILD_DOCS: ON
run: |
cmake -E make_directory ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake ${{github.workspace}} \
-DBUILD_APP:BOOL=OF \
-DBUILD_CLIENT:BOOL=OFF \
-DBUILD_PLUGINS:BOOL=OFF \
-DBUILD_SERVICE:BOOL=OFF \
-DBUILD_ABOUT:BOOL=OFF \
-DBUILD_ADMINAUTHORISER:BOOL=OFF \
-DBUILD_UPDATE:BOOL=OFF \
-DCMARK_SHARED=OFF \
-DCMARK_TESTS=OFF \
-DCMARK_STATIC=ON \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-DBUILD_DOCS=ON
cmake --build . --target doc_Chinese doc_English
- name: update
uses: actions/upload-artifact@v2
with:
name: rabbitremotecontrol_doxygen_${{ matrix.os }}
path: |
build/Doxygen
- name: Deploy to GitHub Pages
if: startsWith(github.ref, 'refs/tags/')
uses: crazy-max/ghaction-github-pages@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target_branch: gh-pages
build_dir: build/Doxygen
# - name: Upload Documentation to Wiki
# if: startsWith(github.ref, 'refs/tags/')
# uses: SwiftDocOrg/github-wiki-publish-action@v1
# with:
# path: build/Doxygen
# env:
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}