Merge pull request #3950 from akohlmey/collected-small-fixes #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub action to build LAMMPS on Windows with Visual C++ | |
name: "Native Windows Compilation and Unit Tests" | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Windows Compilation Test | |
if: ${{ github.repository == 'lammps/lammps' }} | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Select Python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Building LAMMPS via CMake | |
shell: bash | |
run: | | |
python3 -m pip install numpy | |
python3 -m pip install pyyaml | |
nuget install MSMPIsdk | |
nuget install MSMPIDIST | |
cmake -C cmake/presets/windows.cmake \ | |
-D DOWNLOAD_POTENTIALS=off \ | |
-D PKG_PYTHON=on \ | |
-D WITH_PNG=off \ | |
-D WITH_JPEG=off \ | |
-S cmake -B build \ | |
-D BUILD_SHARED_LIBS=on \ | |
-D LAMMPS_EXCEPTIONS=on \ | |
-D ENABLE_TESTING=on | |
cmake --build build --config Release --parallel 2 | |
- name: Run LAMMPS executable | |
shell: bash | |
run: | | |
./build/Release/lmp.exe -h | |
./build/Release/lmp.exe -in bench/in.lj | |
- name: Run Unit Tests | |
working-directory: build | |
shell: bash | |
run: ctest -V -C Release -E FixTimestep:python_move_nve |