diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..71568a4015 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: build_gromacs + +on: + # Triggers on push and pull-request in branch 'manuel' + push: + branches: [ manuel ] + pull_request: + branches: [ manuel ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Single job called "build" + build: + runs-on: ubuntu-latest + steps: + #Checkout repository + - uses: actions/checkout@v3 + # Create a build directory + - name: Directory + run: mkdir build + # Change to build directory and run cmake + - name: Cmake + run: cd build && cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON + # Install + - name: Build + run: cd build && make + - name: Test + run: cd build && make check \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..e1fb6c12f6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: cpp + +compiler: + - gcc + +before_script: + # Create a build directory + - mkdir build + # Change to build directory + - cd build + # Run cmake + - cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON + +script: + - make + #- make check + - make install + - source /usr/local/gromacs/bin/GMXRC \ No newline at end of file diff --git a/src/api/cpp/CMakeLists.txt b/src/api/cpp/CMakeLists.txt index 3697b6eeab..af22bf459f 100644 --- a/src/api/cpp/CMakeLists.txt +++ b/src/api/cpp/CMakeLists.txt @@ -104,7 +104,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") endif() set_target_properties(gmxapi PROPERTIES - # REMOVE ESSA LINHA! Se isole e lave as mãos! + OUTPUT_NAME "gmxapi${GMX_LIBS_SUFFIX}" SOVERSION ${GMXAPI_MAJOR} VERSION ${GMXAPI_RELEASE} ) diff --git a/test_travis_file b/test_travis_file new file mode 100644 index 0000000000..ecd38108c6 --- /dev/null +++ b/test_travis_file @@ -0,0 +1,2 @@ +test_trigger +test_trigger