This repository was archived by the owner on Dec 2, 2025. It is now read-only.
π§ͺπ #76
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: π§ͺπ | |
| on: | |
| schedule: | |
| - cron: "0 7 * * 1" | |
| jobs: | |
| run-tests-rust: | |
| name: Run Rust tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust-version: ["stable", "beta", "nightly"] | |
| mpi: ["openmpi"] | |
| f_strict: ["", "strict,"] | |
| f_serde: ["", "serde,"] | |
| f_coupe: ["", "coupe,"] | |
| f_scotch: ["", "scotch,"] | |
| f_mpi: ["", "mpi,"] | |
| steps: | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| - name: Set up MPI | |
| uses: mpi4py/setup-mpi@v1 | |
| with: | |
| mpi: ${{ matrix.mpi }} | |
| - name: Install cargo-mpirun and cargo-templated-examples | |
| run: cargo install cargo-mpirun cargo-templated-examples | |
| - uses: actions/checkout@v4 | |
| - name: Install LAPACK, OpenBLAS, SCOTCH | |
| run: | |
| sudo apt-get install -y libopenblas-dev liblapack-dev libscotch-dev | |
| - name: Build rust library | |
| run: cargo build --no-default-features --features "${{matrix.f_strict}}${{matrix.f_serde}}${{matrix.f_coupe}}${{matrix.f_scotch}}${{matrix.f_mpi}}" | |
| - name: Build rust library in release mode | |
| run: cargo build --release --no-default-features --features "${{matrix.f_strict}}${{matrix.f_serde}}${{matrix.f_coupe}}${{matrix.f_scotch}}${{matrix.f_mpi}}" | |
| - name: Run unit tests | |
| run: cargo test --no-default-features --features "${{matrix.f_strict}}${{matrix.f_serde}}${{matrix.f_coupe}}${{matrix.f_scotch}}${{matrix.f_mpi}}" | |
| - name: Run unit tests in release mode | |
| run: cargo test --release --no-default-features --features "${{matrix.f_strict}}${{matrix.f_serde}}${{matrix.f_coupe}}${{matrix.f_scotch}}${{matrix.f_mpi}}" | |
| - name: Run tests | |
| run: cargo test --examples --release --no-default-features --features "${{matrix.f_strict}}${{matrix.f_serde}}${{matrix.f_coupe}}${{matrix.f_scotch}}${{matrix.f_mpi}}" | |
| - name: Run examples | |
| run: cargo templated-examples NPROCESSES 2,4 | |
| - name: Build docs | |
| run: cargo doc --no-default-features --features "${{matrix.f_strict}}${{matrix.f_serde}}${{matrix.f_coupe}}${{matrix.f_scotch}}${{matrix.f_mpi}}" --no-deps |