Using miniconda docker (#366)
* Using miniconda docker * remove sudo * Remove double install of rocprofiler-docs conda environment * Fix building docs * Fix build docs - Additional system packages * Using miniforge * Fixing warning as errors build issue * cmake formatting --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
This commit is contained in:
@@ -30,6 +30,7 @@ env:
|
||||
jobs:
|
||||
build-docs:
|
||||
runs-on: ubuntu-latest
|
||||
container: continuumio/miniconda3
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
@@ -39,41 +40,28 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Conda
|
||||
shell: bash -el {0}
|
||||
run: |
|
||||
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||
bash ./Miniconda3-latest-Linux-x86_64.sh -b
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
- name: Create Docs Directory
|
||||
run:
|
||||
mkdir -p docs/_doxygen/rocprofiler-sdk
|
||||
mkdir -p docs/_doxygen/roctx
|
||||
- name: Install Conda environment
|
||||
shell: bash -el {0}
|
||||
working-directory: source/docs
|
||||
run: |
|
||||
conda env create -n rocprofiler-docs -f environment.yml
|
||||
- name: Install documentation dependencies
|
||||
timeout-minutes: 10
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y doxygen graphviz
|
||||
sudo python3 -m pip install sphinx
|
||||
sudo python3 -m pip install doxysphinx rocm-docs-core
|
||||
apt-get update
|
||||
apt-get install -y doxygen graphviz build-essential cmake
|
||||
- name: Build Docs
|
||||
shell: bash -el {0}
|
||||
working-directory: source/docs
|
||||
run: |
|
||||
source /home/runner/.bashrc
|
||||
export PATH=/home/runner/miniconda3/bin:$PATH
|
||||
conda init
|
||||
conda env create -n rocprofiler-docs -f environment.yml
|
||||
source activate
|
||||
conda activate rocprofiler-docs
|
||||
sudo ../scripts/update-docs.sh
|
||||
python3 -m pip install sphinx
|
||||
python3 -m pip install doxysphinx rocm-docs-core
|
||||
../scripts/update-docs.sh
|
||||
- name: Upload artifact
|
||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user