Add sequence Cholesky solver (#1396) #9865
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: CI Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "**/website/**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "**/website/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| momentum: | |
| name: cpp${{ matrix.simd == 'ON' && '-simd' || '' }}-${{ matrix.mode == '' && 'opt' || 'dev' }}-ubuntu | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| simd: ["ON"] # Only test SIMD=ON (production config) to reduce CI cost | |
| mode: [""] | |
| env: | |
| MOMENTUM_ENABLE_SIMD: ${{ matrix.simd }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.5 | |
| with: | |
| cache: true | |
| - name: Check code formatting | |
| run: | | |
| pixi run lint-check | |
| - name: Build and test Momentum | |
| run: | | |
| MOMENTUM_BUILD_PYMOMENTUM=$MOMENTUM_BUILD_PYMOMENTUM \ | |
| MOMENTUM_ENABLE_SIMD=$MOMENTUM_ENABLE_SIMD \ | |
| pixi run test${{ matrix.mode }} | |
| - name: Install Momentum and Build hello_world | |
| run: | | |
| MOMENTUM_BUILD_PYMOMENTUM=$MOMENTUM_BUILD_PYMOMENTUM \ | |
| MOMENTUM_ENABLE_SIMD=$MOMENTUM_ENABLE_SIMD \ | |
| pixi run install | |
| pixi run cmake \ | |
| -S momentum/examples/hello_world \ | |
| -B momentum/examples/hello_world/build \ | |
| -DCMAKE_BUILD_TYPE=Release | |
| pixi run cmake --build momentum/examples/hello_world/build | |
| pymomentum: | |
| name: py-py312-ubuntu | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.5 | |
| with: | |
| environments: py312 | |
| cache: true | |
| - name: Build and test PyMomentum | |
| run: | | |
| pixi run -e py312 test_py | |
| - name: Build Python API Doc | |
| run: | | |
| pixi run -e py312 doc_py | |
| - name: Upload Python API Doc | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: python-api-doc | |
| path: build/python_api_doc | |
| retention-days: 7 |