Skip to content

Commit 1373ef9

Browse files
committed
CI: Win32 Build
1 parent 26b6866 commit 1373ef9

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

.github/workflows/windows.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,28 @@ jobs:
7777
7878
# add before install, and fix Python path:
7979
# ctest --test-dir build -C Debug --output-on-failure
80+
81+
build_win_32bit:
82+
name: MSVC 32bit w/o MPI
83+
runs-on: windows-latest
84+
if: github.event.pull_request.draft == false
85+
steps:
86+
- uses: actions/checkout@v4
87+
- uses: conda-incubator/setup-miniconda@v3
88+
name: Setup conda
89+
with:
90+
architecture: "x86"
91+
auto-update-conda: true
92+
activate-environment: openpmd-api-nompi-dev
93+
environment-file: conda_nompi.yml
94+
channels: conda-forge
95+
channel-priority: true
96+
- name: Build & Install
97+
run: |
98+
cmake -S . -B build ^
99+
-G "Ninja" ^
100+
-DCMAKE_BUILD_TYPE=Release ^
101+
-DopenPMD_USE_MPI=OFF
102+
cmake --build build --config Release --parallel 2
103+
ctest --test-dir build --output-on-failure -C Release
104+
cmake --build build --config Release --target install

conda.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ name: openpmd-api-dev
1313
channels:
1414
- conda-forge
1515
dependencies:
16-
- adios=*=mpi_openmpi_*
1716
- adios2=*=mpi_openmpi_*
1817
# - catch2 # shipped internally
1918
- ccache

conda_nompi.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This is a Conda environment file.
2+
#
3+
# Activating and installing this environment will provide all dependencies
4+
# that are needed for full-feature development:
5+
# - conda env create --file conda.yml
6+
# - conda activate openpmd-api-dev
7+
#
8+
# If you need more packages in that environment, e.g. jupyter, run:
9+
# - mamba install -y -c conda-forge jupyter jupyterlab dask-labextension
10+
#
11+
12+
name: openpmd-api-nompi-dev
13+
channels:
14+
- conda-forge
15+
dependencies:
16+
- adios2=*=nompi*
17+
# - catch2 # shipped internally
18+
- ccache
19+
- curl
20+
- cmake
21+
- compilers
22+
- dask
23+
- doxygen
24+
- git
25+
- hdf5=*=nompi*
26+
- mamba
27+
- make
28+
- ninja
29+
- numpy
30+
- openmpi
31+
- pandas
32+
- pkg-config
33+
- pip
34+
- pre-commit
35+
- pyarrow # for dask
36+
# - pybind11 # shipped internally
37+
- python>=3.8
38+
39+
# just a note for later hackery, we could install pip packages inside the env, too:
40+
# - pip:
41+
# - "-r requirements.txt"

0 commit comments

Comments
 (0)