Skip to content

Commit

Permalink
update doxygen gh pages workflow to use macos
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Aug 6, 2024
1 parent ee827d3 commit c3c11f3
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/doxygen-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,32 @@ on:

jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash

runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "true"
- name: Install dependencies - ubuntu
run: |
sudo apt-get update
sudo apt-get install doxygen graphviz -y
sudo apt-get install -y libhdf5-dev libboost-all-dev
git clone https://github.com/catchorg/Catch2.git
cd Catch2
git checkout "v3.5.3"
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
shell: bash

- name: Install dependencies - macos
run: brew install hdf5 boost catch2 doxygen graphviz

- name: Configure and build the API
run: |
cmake --preset=ci-ubuntu
cmake --build build
shell: bash
- name: Configure
shell: pwsh
run: cmake "--preset=ci-macos"

- name: Build
run: cmake --build build

- name: Build the docs
run : cmake "-DPROJECT_SOURCE_DIR=$PWD" "-DPROJECT_BINARY_DIR=$PWD/build" -P cmake/docs-ci.cmake
shell: bash

- name: Create .nojekyll to ensure pages with underscores work on gh pages
run: touch build/docs/html/.nojekyll
shell: bash

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit c3c11f3

Please sign in to comment.