Skip to content

Commit

Permalink
adding win CI
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Oct 24, 2024
1 parent 1ef047b commit 198d0fd
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,34 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build
run: bash tools/gha_pygmo_plugins_nonfree_linux_py313.sh
run: bash tools/gha_pygmo_plugins_nonfree_linux_py313.sh
windows_2022_release:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: ppnf_devel
environment-file: ppnf_devel.yml
auto-update-conda: true
channels: conda-forge
channel-priority: strict
auto-activate-base: false
- name: Build
shell: pwsh
run: |
mkdir build
cd build
cmake ../ -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\ppnf_devel\Library -DPPNF_BUILD_CPP=yes -DPPNF_BUILD_TESTS=yes -DBoost_NO_BOOST_CMAKE=ON
cmake --build . -j4 --config Release --target install
ctest -j4 -V -C Release --output-on-failure
cd ..
mkdir build_py
cd build_py
cmake ../ -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\ppnf_devel\Library -DPPNF_PYTHON_CPP=yes -DPPNF_BUILD_CPP=no -DPPNF_BUILD_TESTS=no -DBoost_NO_BOOST_CMAKE=ON
cmake --build . -j4 --config Release --target install
python -c "import pygmo_plugins_nonfree; import pygmo; pygmo_plugins_nonfree.test.run_test_suite(1); pygmo.mp_bfe.shutdown_pool()"

0 comments on commit 198d0fd

Please sign in to comment.