Skip to content

Commit

Permalink
added g++ compiler to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGanem committed Apr 6, 2022
1 parent 5094a66 commit f75326e
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/gromacs_build.yml
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

0 comments on commit f75326e

Please sign in to comment.