Skip to content

Commit f4bf8ba

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

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
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_nompi.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
- adios=*=nompi*
17+
- adios2=*=nompi*
18+
# - catch2 # shipped internally
19+
- ccache
20+
- curl
21+
- cmake
22+
- compilers
23+
- dask
24+
- doxygen
25+
- git
26+
- hdf5=*=nompi*
27+
- mamba
28+
- make
29+
- ninja
30+
- numpy
31+
- openmpi
32+
- pandas
33+
- pkg-config
34+
- pip
35+
- pre-commit
36+
- pyarrow # for dask
37+
# - pybind11 # shipped internally
38+
- python>=3.8
39+
40+
# just a note for later hackery, we could install pip packages inside the env, too:
41+
# - pip:
42+
# - "-r requirements.txt"

0 commit comments

Comments
 (0)