-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from ORNL-Fusion/master_dev
Master dev
- Loading branch information
Showing
5 changed files
with
108 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Build Documentation | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'master' | ||
jobs: | ||
ci_doxygen: | ||
if: ${{github.ref_name}} == 'master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone Repo | ||
shell: bash | ||
working-directory: ${{runner.workspace}} | ||
run: | | ||
git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git ${{runner.workspace}}/Stellarator-Tools | ||
git clone https://token:${{secrets.AUTH_TOKEN}}@github.com/ORNL-Fusion/Stellarator-Tools-Docs.git | ||
- name: Create build directory. | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/Stellarator-Tools | ||
run: cmake -E make_directory build | ||
- name: Install Libraries Linux | ||
shell: bash | ||
run: | | ||
sudo apt update | ||
sudo apt-get install libnetcdf-dev | ||
sudo apt-get install libnetcdff-dev | ||
sudo apt-get install libopenmpi-dev | ||
sudo apt-get install libscalapack-openmpi-dev | ||
sudo apt-get install doxygen | ||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/Stellarator-Tools/build | ||
run: cmake -DBUILD_BOOZ_XFORM=ON -DBUILD_V3FIT=ON -DBUILD_V3RFUN=ON -DBUILD_SIESTA=ON -DBUILD_LGRID=ON -DBUILD_SURFACE=ON -DBUILD_BMW=ON -DBUILD_PARVMEC=ON -DBUILD_DESCUR=ON -DDOXYGEN_OUTPUT_DIRECTORY=${{runner.workspace}}/Stellarator-Tools-Docs -DDOXYGEN_HTML_OUTPUT=docs ../ | ||
- name: Build | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/Stellarator-Tools/build | ||
run: make doc | ||
- name: Push changes. | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/Stellarator-Tools-Docs/docs | ||
env: | ||
GITHUB_TOKEN: ${{secrets.AUTH_TOKEN}} | ||
run: | | ||
git config user.name ${{secrets.AUTH_USER}} | ||
git config user.email ${{secrets.AUTH_EMAIL}} | ||
git add * | ||
git commit . -m "Update Doxygen docs." | ||
git push origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters