forked from vandersonmr/gromacs-mo833a
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,19 +1,34 @@ | ||
name: gromacs-build-mo833 | ||
on: [push] | ||
name: CMake | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-gromacs: | ||
build: | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
#checks out | ||
- uses: actions/checkout@v3 | ||
- name: setup | ||
#update and isntal wget and git | ||
run: sudo apt update && sudo apt-get -y install wget git build-essential libssl-dev cmake | ||
|
||
#cmake | ||
- name: cmake | ||
run: mkdir build && cd build && cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON | ||
#make | ||
|
||
- name: update | ||
run: sudo apt-get update | ||
|
||
- name: install g++ | ||
run: sudo apt-get install g++ -y | ||
|
||
# - name: Configure CMake | ||
# # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
# run: cmake -DCMAKE_BUILD_TYPE=RELEASE | ||
|
||
- name: Build | ||
run: mkdir build && cd build && cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DCMAKE_CXX_COMPILER=g++ | ||
|
||
- name: make | ||
working-directory: build/ | ||
run: make && make check ; source /usr/local/gromacs/bin/GMXRC | ||
#go to build folder and runs make | ||
run: make |