Skip to content

Commit 9495073

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

File tree

4 files changed

+94
-1
lines changed

4 files changed

+94
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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-win32-dev
13+
channels:
14+
- defaults
15+
dependencies:
16+
- curl
17+
- cmake
18+
- git
19+
- hdf5
20+
- ninja
21+
- numpy
22+
- pandas
23+
- pip
24+
- python>=3.8
25+
26+
# just a note for later hackery, we could install pip packages inside the env, too:
27+
# - pip:
28+
# - "-r requirements.txt"

.github/workflows/windows.yml

+26
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,29 @@ 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
83+
runs-on: windows-2019
84+
if: github.event.pull_request.draft == false
85+
env:
86+
CMAKE_GENERATOR: "Visual Studio 16 2019"
87+
steps:
88+
- uses: actions/checkout@v4
89+
- uses: conda-incubator/setup-miniconda@v3
90+
name: Setup conda
91+
with:
92+
architecture: "x86"
93+
auto-update-conda: true
94+
activate-environment: openpmd-api-win32-dev
95+
environment-file: .github/workflows/dependencies/conda_win32.yml
96+
channels: defaults
97+
channel-priority: true
98+
- name: Build & Install
99+
run: |
100+
cmake -S . -B build ^
101+
-DCMAKE_BUILD_TYPE=Release ^
102+
-DopenPMD_USE_MPI=OFF
103+
cmake --build build --config Release --parallel 2
104+
ctest --test-dir build --output-on-failure -C Release
105+
cmake --build build --config Release --target install

conda.yml

-1
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

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
- pandas
31+
- pkg-config
32+
- pip
33+
- pre-commit
34+
- pyarrow # for dask
35+
# - pybind11 # shipped internally
36+
- python>=3.8
37+
38+
# just a note for later hackery, we could install pip packages inside the env, too:
39+
# - pip:
40+
# - "-r requirements.txt"

0 commit comments

Comments
 (0)