Skip to content

Commit

Permalink
Build doxygen docs as part of GitHub Pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Jul 20, 2023
1 parent 5a544ed commit a0ac2cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install --no-install-recommends build-essential ninja-build doxygen graphviz
sudo apt install --no-install-recommends build-essential ninja-build
- name: Install latest gcc (Linux)
if: matrix.compiler == 'gcc-latest'
Expand Down Expand Up @@ -142,13 +142,3 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: artifact/health_gps_${{ matrix.platform }}.zip

- name: Doxygen release API deploy
if: matrix.compiler == 'gcc-default' && startsWith(github.ref, 'refs/tags/')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{github.workspace}}/out/build/linux-release/src/html
destination_dir: html
enable_jekyll: true
commit_message: ${{ github.ref_name }} - ${{ github.event.head_commit.message }}
17 changes: 17 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ jobs:
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
- name: Install build dependencies
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install --no-install-recommends build-essential ninja-build doxygen graphviz
- name: Install VCPKG
run: |
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh -disableMetrics
- name: Configure HealthGPS
run: |
cmake --preset=linux-release
- name: Build with doxygen
run: |
ninja -C out/build/linux-release/ doxygen-docs
cp -r out/build/linux-release/src/html _site/html
# Deployment job
deploy:
Expand Down

0 comments on commit a0ac2cf

Please sign in to comment.