Skip to content

Commit 7a4ab64

Browse files
authored
Merge branch 'develop' into fix_elastic_born_silicon
2 parents ee11940 + ac59405 commit 7a4ab64

File tree

126 files changed

+1024
-263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1024
-263
lines changed

.github/workflows/check-cpp23.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Building LAMMPS via CMake
6363
shell: bash
6464
run: |
65-
ccache -z
65+
ccache -z -M 3
6666
python3 -m venv linuxenv
6767
source linuxenv/bin/activate
6868
python3 -m pip install numpy
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# GitHub action to build LAMMPS on Linux with traditional build system
2+
name: "Check legacy GNU Make build"
3+
4+
on:
5+
push:
6+
branches:
7+
- develop
8+
- maintenance
9+
pull_request:
10+
branches:
11+
- develop
12+
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
name: Build with GNU Make
18+
if: ${{ github.repository == 'lammps/lammps' }}
19+
runs-on: ubuntu-latest
20+
env:
21+
CCACHE_DIR: ${{ github.workspace }}/.ccache
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v5
26+
with:
27+
fetch-depth: 2
28+
29+
- name: Install extra Linux packages
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y ccache \
33+
libeigen3-dev \
34+
libcurl4-openssl-dev \
35+
mpi-default-bin \
36+
mpi-default-dev
37+
38+
- name: Set up ccache
39+
uses: actions/cache@v4
40+
with:
41+
path: ${{ env.CCACHE_DIR }}
42+
key: linux-gnu-ccache-${{ github.sha }}
43+
restore-keys: linux-gnu-ccache-
44+
45+
- name: Install optional LAMMPS packages
46+
shell: bash
47+
working-directory: src
48+
run: make yes-most
49+
50+
- name: Building LAMMPS with GNU Make
51+
shell: bash
52+
working-directory: src
53+
run: |
54+
ccache -z -M 3
55+
make -j2 CC="ccache g++" serial
56+
make -j2 CC="ccache mpicxx" mpi
57+
ccache -s
58+
59+
- name: Running serial LAMMPS
60+
shell: bash
61+
run: ./src/lmp_serial -in bench/in.lj -log none -nocite
62+
63+
- name: Running parallel LAMMPS
64+
shell: bash
65+
run: mpirun -np 2 ./src/lmp_mpi -in bench/in.lj -log none -nocite
66+

.github/workflows/check-vla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Building LAMMPS via CMake
5252
shell: bash
5353
run: |
54-
ccache -z
54+
ccache -z -M 3
5555
python3 -m venv linuxenv
5656
source linuxenv/bin/activate
5757
python3 -m pip install numpy

.github/workflows/compile-msvc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Building LAMMPS via CMake
5555
run: |
56-
ccache -z
56+
ccache -z -M 3
5757
python3 -m pip install numpy
5858
python3 -m pip install pyyaml
5959
cmake -C cmake\presets\windows.cmake -D CMAKE_CXX_COMPILER=cl -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -D CMAKE_C_COMPILER=cl -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_Fortran_COMPILER="" -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 ENABLE_TESTING=on -D CMAKE_BUILD_TYPE=Release -G Ninja

.github/workflows/full-regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Building LAMMPS via CMake
4949
shell: bash
5050
run: |
51-
ccache -z
51+
ccache -z -M 3
5252
python3 -m venv linuxenv
5353
source linuxenv/bin/activate
5454
python3 -m pip install --upgrade pip

.github/workflows/quick-regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Building LAMMPS via CMake
5353
shell: bash
5454
run: |
55-
ccache -z
55+
ccache -z -M 3
5656
python3 -m venv linuxenv
5757
source linuxenv/bin/activate
5858
python3 -m pip install --upgrade pip

.github/workflows/unittest-arm64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Building LAMMPS via CMake
4949
shell: bash
5050
run: |
51-
ccache -z
51+
ccache -z -M 3
5252
python3 -m venv linuxenv
5353
source linuxenv/bin/activate
5454
python3 -m pip install numpy

.github/workflows/unittest-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Building LAMMPS via CMake
5454
shell: bash
5555
run: |
56-
ccache -z
56+
ccache -z -M 3
5757
python3 -m venv linuxenv
5858
source linuxenv/bin/activate
5959
python3 -m pip install numpy

.github/workflows/unittest-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
shell: bash
4848
working-directory: build
4949
run: |
50-
ccache -z
50+
ccache -z -M 3
5151
python3 -m venv macosenv
5252
source macosenv/bin/activate
5353
python3 -m pip install numpy

.github/workflows/unittest-single.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Building LAMMPS via CMake
5454
shell: bash
5555
run: |
56-
ccache -z
56+
ccache -z -M 3
5757
python3 -m venv linuxenv
5858
source linuxenv/bin/activate
5959
python3 -m pip install numpy

0 commit comments

Comments
 (0)