Skip to content

Commit

Permalink
Re-enable Windows conda check using cmd.exe (FEniCS#3474)
Browse files Browse the repository at this point in the history
* Re-enable Windows conda check using cmd.exe

* Fix.

* Remove run on push.
  • Loading branch information
jhale authored Oct 18, 2024
1 parent 683b63a commit d46685e
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ jobs:
name: Install and test
strategy:
matrix:
# NOTE: Re-enable windows-2022 after iimpi libfabric.dll issue fixed.
os: [ubuntu-latest, macos-13, macos-14]
os: [ubuntu-latest, macos-13, macos-14, windows-2022]
python-version: ["3.9", "3.10", "3.11", "3.12"]
petsc-scalar-type: ["real"]
include:
- os: ubuntu-latest
python-version: "3.12"
petsc-scalar-type: "complex"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
# This is necessary to ensure conda environment is activated in every step.
Expand All @@ -31,16 +35,29 @@ jobs:
auto-update-conda: true
python-version: ${{ matrix.python-version }}

# TODO: These could probably be merged into one cross-platform step.
- name: Install DOLFINx with MPICH (Unix-like)
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
run: |
conda install -c conda-forge fenics-dolfinx mpich
conda install -c conda-forge fenics-dolfinx mpich petsc=*=${{ matrix.petsc-scalar-type }}*
- name: Install DOLFINx (Windows)
if: ${{ runner.os == 'Windows' }}
run: |
conda install -c conda-forge fenics-dolfinx
- name: Test
- name: Test (Unix-like)
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
run: |
conda info
conda list
mpiexec --version
mpiexec -v -np 1 python -c "from mpi4py import MPI; import dolfinx; dolfinx.mesh.create_rectangle(comm=MPI.COMM_WORLD, points=((0, 0), (2, 1)), n=(32, 16))"
mpiexec -v -np 2 python -c "from mpi4py import MPI; import dolfinx; dolfinx.mesh.create_rectangle(comm=MPI.COMM_WORLD, points=((0, 0), (2, 1)), n=(32, 16))"
# NOTE: Late 2024, Intel MPI is only correctly setup using cmd.exe.
- name: Test (Windows)
if: ${{ runner.os == 'Windows' }}
shell: cmd /C CALL {0}
run: |
conda info
conda list
Expand Down

0 comments on commit d46685e

Please sign in to comment.