Skip to content

Commit

Permalink
alternate approach for using ninja with MSVC++
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Aug 31, 2024
1 parent 6e612f6 commit d853804
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/compile-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: ilammy/msvc-dev-cmd@v1
with:
fetch-depth: 2

- name: Install Ccache
run: |
choco install ccache
choco install ninja
- name: Install MSMPI
run: |
Expand All @@ -47,7 +49,6 @@ jobs:
python-version: '3.11'

- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m pip install numpy
Expand All @@ -61,16 +62,15 @@ jobs:
-D WITH_JPEG=off \
-S cmake -B build \
-D BUILD_SHARED_LIBS=on \
-D ENABLE_TESTING=on
cmake --build build --config Release --parallel 2
-D ENABLE_TESTING=on \
-D Ninja
cmake --build build --parallel 2
- name: Run LAMMPS executable
shell: bash
run: |
./build/Release/lmp.exe -h
./build/Release/lmp.exe -in bench/in.lj
./build/lmp.exe -h
./build/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
run: ctest -V -E FixTimestep:python_move_nve

0 comments on commit d853804

Please sign in to comment.