Implementation details for clair change (fix 4) and any #38
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 ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {os: ubuntu-22.04, llvm: 15, doc: ON} | |
- {os: ubuntu-22.04, llvm: 16, doc: OFF} | |
- {os: ubuntu-22.04, llvm: 17, doc: OFF} | |
- {os: ubuntu-22.04, llvm: 18, 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 lsb-release wget software-properties-common && | |
wget -O /tmp/llvm.sh https://apt.llvm.org/llvm.sh && | |
chmod +x /tmp/llvm.sh && sudo /tmp/llvm.sh ${{ matrix.llvm }} && | |
sudo apt-get install | |
ccache | |
clang-${{ matrix.llvm }} | |
clang-tools-${{ matrix.llvm }} | |
libclang-${{ matrix.llvm }}-dev | |
libhdf5-dev | |
python3 | |
python3-dev | |
python3-numpy | |
python3-scipy | |
- name: Build c2py | |
env: | |
CC: clang-${{ matrix.llvm }} | |
CXX: clang++-${{ matrix.llvm }} | |
LIBRARY_PATH: /usr/local/opt/llvm/lib | |
CMAKE_PREFIX_PATH: /usr/lib/llvm-${{ matrix.llvm }}/lib/cmake/clang | |
run: | | |
mkdir build && cmake -B build -DCMAKE_INSTALL_PREFIX=/opt/c2py | |
cmake --build build -j2 | |
- name: Test clair | |
run: | | |
cd build | |
ctest -j2 --output-on-failure |