[doc] #42
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
name: build | |
on: | |
push: | |
branches: [ unstable ] | |
pull_request: | |
branches: [ unstable ] | |
env: | |
LLVM: 15 | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {os: ubuntu-22.04, cc: clang-15, cxx: clang++-15, doc: ON} | |
#- {os: ubuntu-20.04, cc: clang-11, cxx: clang++-11} | |
#- {os: macos-14, cc: /usr/local/opt/llvm/bin/clang, cxx: /usr/local/opt/llvm/bin/clang++, doc: OFF} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install ubuntu dependencies | |
if: matrix.os == 'ubuntu-22.04' | |
run: > | |
sudo apt-get update && | |
sudo apt-get install | |
ccache | |
clang-15 | |
llvm-15-dev | |
libclang-15-dev | |
libblas-dev | |
libomp-15-dev | |
clang-format-15 | |
python3 | |
python3-dev | |
python3-numpy | |
python3-scipy | |
python3-pip | |
python3-sphinx | |
python3-sphinx-rtd-theme | |
python3-sphinx-copybutton | |
python3-myst-parser && | |
pip3 install linkify-it-py | |
- name: Install homebrew dependencies | |
if: matrix.os == 'macos-14' | |
run: | | |
brew install llvm [email protected] | |
pip3 install numpy | |
- name: Build clair | |
env: | |
CC: ${{ matrix.cc }} | |
CXX: ${{ matrix.cxx }} | |
LIBRARY_PATH: /usr/local/opt/llvm/lib | |
run: | | |
cmake -B build -S. -DLLVM_CONFIG=/usr/bin/llvm-config-15 -DCMAKE_INSTALL_PREFIX=$HOME/install -DBuild_Documentation=${{ matrix.doc }} | |
cd build && make -j2 || make -j1 VERBOSE=1 | |
- name: Test clair | |
env: | |
DYLD_FALLBACK_LIBRARY_PATH: /usr/local/opt/llvm/lib | |
run: | | |
cd build | |
ctest -j2 --output-on-failure | |
- name: Deploy documentation to website | |
if: matrix.doc == 'ON' && github.ref == 'refs/heads/unstable' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: build/doc/html | |
branch: github.io | |
target-folder: docs/unstable | |