Add tests for renaming classes and methods #106
Workflow file for this run
This file contains hidden or 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, tool ] | |
| pull_request: | |
| branches: [ unstable, tool ] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - {os: ubuntu-24.04, llvm: 18, doc: ON} | |
| - {os: ubuntu-24.04, llvm: 19, doc: OFF} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ubuntu dependencies | |
| if: matrix.os == 'ubuntu-24.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 |