Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cgmes3 #34

Merged
merged 3 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 30 additions & 31 deletions .github/workflows/build-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,58 @@
name: build-gh-pages

on: workflow_dispatch

jobs:
build-gh-pages:
build-gh-pages:
runs-on: ubuntu-latest
env:
USE_CIM_VERSION4: CGMES_2.4.15_27JAN2020
USE_CIM_VERSION_2_4_15: CGMES_2.4.15_27JAN2020
USE_CIM_VERSION_3_0_0: CGMES_3.0.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install Doxygen
run: sudo apt-get install doxygen
shell: bash
run: sudo apt-get install doxygen
shell: bash
- name: Install Graphviz
run: sudo apt-get install graphviz
shell: bash
- name: CIM1 Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION1}}
- name: CIM1 Configure CMake and compile
shell: bash
working-directory: ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION1}}/

- name: USE_CIM_VERSION_2_4_15 Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_2_4_15}}
- name: USE_CIM_VERSION_2_4_15 Configure CMake and compile
shell: bash
working-directory: ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_2_4_15}}/
run: |
cd ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION1}}
cmake ../.. -DUSE_CIM_VERSION=${{env.USE_CIM_VERSION1}}
cd ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_2_4_15}}
cmake ../.. -DUSE_CIM_VERSION=${{env.USE_CIM_VERSION_2_4_15}}
make doc

- name: CIM1 Copy
- name: USE_CIM_VERSION_2_4_15 Copy
run: |
mkdir -p ./copy_files/docs
cp -r ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION1}}/doc/html ./copy_files/docs/${{env.USE_CIM_VERSION1}}
- name: CIM4 Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION4}}
- name: CIM4 Configure CMake and compile
cp -r ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_2_4_15}}/doc/html ./copy_files/docs/${{env.USE_CIM_VERSION_2_4_15}}

- name: USE_CIM_VERSION_3_0_0 Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_3_0_0}}
- name: USE_CIM_VERSION_3_0_0 Configure CMake and compile
shell: bash
working-directory: ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION4}}/
working-directory: ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_3_0_0}}/
run: |
cd ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION4}}
cmake ../.. -DUSE_CIM_VERSION=${{env.USE_CIM_VERSION4}}
cd ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_3_0_0}}
cmake ../.. -DUSE_CIM_VERSION=${{env.USE_CIM_VERSION_3_0_0}}
make doc
- name: CIM4 Copy
- name: USE_CIM_VERSION_3_0_0 Copy
run: |
mkdir -p ./copy_files/docs
cp -r ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION4}}/doc/html ./copy_files/docs/${{env.USE_CIM_VERSION4}}
cp -r ${{runner.workspace}}/libcimpp/build/${{env.USE_CIM_VERSION_3_0_0}}/doc/html ./copy_files/docs/${{env.USE_CIM_VERSION_3_0_0}}
cp ./README.md ./copy_files/docs/README.md

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./copy_files
force_orphan: true
keep_files: false
publish_branch: gh-pages


Loading
Loading