Skip to content

Build all versions in GitHub workflows (#37) #46

Build all versions in GitHub workflows (#37)

Build all versions in GitHub workflows (#37) #46

Workflow file for this run

name: build-doc
on:
push:
workflow_call:
jobs:
build-doc:
runs-on: ubuntu-latest
strategy:
matrix:
schema:
- CGMES_2.4.13_18DEC2013
- CGMES_2.4.15_16FEB2016
- CGMES_2.4.15_27JAN2020
- CGMES_3.0.0
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Doxygen
run: sudo apt-get install doxygen
shell: bash
- name: Install Graphviz
run: sudo apt-get install graphviz
shell: bash
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/libcimpp/build/${{matrix.schema}}
- name: Configure CMake and compile
shell: bash
working-directory: ${{runner.workspace}}/libcimpp/build/${{matrix.schema}}/
run: |
cmake ../.. -DUSE_CIM_VERSION=${{matrix.schema}}
make -j4 doc
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: doc_${{matrix.schema}}
path: ${{runner.workspace}}/libcimpp/build/${{matrix.schema}}/doc/html