forked from omoultosEthTuDelft/OCTP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/readme_badges' into develop
- Loading branch information
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
.github/workflows/build-and-test-with-lammps-release-branch.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: build-and-test-with-lammps-release-branch # workflow | ||
|
||
# Triggers for the jobs in this workflow | ||
on: | ||
push: | ||
branches: [ "master", "develop", "*/*" ] | ||
pull_request: | ||
branches: [ "master", "develop" ] | ||
|
||
# Steps to build lammps with octp and run tests | ||
jobs: | ||
build-and-test: | ||
|
||
runs-on: ubuntu-22.04 # GitHub hosted runner (machine) on which lammps will be built | ||
|
||
steps: | ||
- name: Checkout OCTP | ||
uses: actions/checkout@v4 | ||
with: | ||
path: octp | ||
|
||
- name: Checkout LAMMPS release branch | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: lammps/lammps | ||
ref: release | ||
path: lammps | ||
|
||
- name: Copy OCTP files to LAMMPS src directory | ||
run: | | ||
cp --verbose octp/src/* lammps/src/ | ||
- name: Install OpenMPI in runner | ||
run: | | ||
sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev | ||
echo "mpi version" | ||
mpicc --showme:version | ||
- name: Build LAMMPS with OCTP plugin | ||
run: | | ||
cd lammps/src | ||
make yes-asphere | ||
make yes-body | ||
make yes-class2 | ||
make yes-dipole | ||
make yes-granular | ||
make yes-kspace | ||
make yes-manybody | ||
make yes-molecule | ||
make yes-rigid | ||
make yes-shock | ||
make -j 8 mpi | ||
if ! [ -f lmp_mpi ]; then | ||
echo "::error:: lammps binary does not exist" | ||
exit 1 | ||
fi |
2 changes: 1 addition & 1 deletion
2
...ws/build-and-test-with-lammps-release.yml → ...d-and-test-with-lammps-stable-release.yml
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
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