diff --git a/.github/workflows/gromacs_build.yml b/.github/workflows/gromacs_build.yml index 907dea1dde..243a342fb1 100644 --- a/.github/workflows/gromacs_build.yml +++ b/.github/workflows/gromacs_build.yml @@ -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