From 564f114cfbd1150ac56737cd6fd4a433c7fa0774 Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 09:33:18 +0200 Subject: [PATCH 1/7] Create cmake.yml --- .github/workflows/cmake.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 00000000000..e282e389147 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,38 @@ +name: CMake + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + 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: + - uses: actions/checkout@v2 + + - 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 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Test + working-directory: ${{github.workspace}}/build + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C ${{env.BUILD_TYPE}} + From 473345974af0a114507781979d55968f1cfe0691 Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 09:43:37 +0200 Subject: [PATCH 2/7] Update cmake.yml --- .github/workflows/cmake.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e282e389147..405d2f653b9 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -6,6 +6,7 @@ on: pull_request: branches: [ master ] + env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release @@ -20,10 +21,11 @@ jobs: steps: - uses: actions/checkout@v2 - + - 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: ${GITHUB_ACTION_PATH}/setup-mpi.sh 'openmpi' run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build From 6bb0f676e9e3ee2148b22f3f52eddb0218310357 Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 09:45:38 +0200 Subject: [PATCH 3/7] Update cmake.yml --- .github/workflows/cmake.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 405d2f653b9..2881b500118 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -25,8 +25,9 @@ jobs: - 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: ${GITHUB_ACTION_PATH}/setup-mpi.sh 'openmpi' - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: | + ${GITHUB_ACTION_PATH}/setup-mpi.sh 'openmpi' + cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build # Build your program with the given configuration From 0227fca6a7bc2fb07f5e68dcb38cb0af5611b934 Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 11:22:39 +0200 Subject: [PATCH 4/7] Update cmake.yml --- .github/workflows/cmake.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 2881b500118..0bbe6969af3 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -21,7 +21,9 @@ jobs: steps: - uses: actions/checkout@v2 - + - name: Install MPI + run: sudo apt install -y openmpi-bin libopenmpi-dev + - 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 From 14c1bba0844674e879aca33f23f562d9ef5636b3 Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 11:24:45 +0200 Subject: [PATCH 5/7] Update cmake.yml --- .github/workflows/cmake.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 0bbe6969af3..66a4ad7cc83 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -28,7 +28,6 @@ jobs: # 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: | - ${GITHUB_ACTION_PATH}/setup-mpi.sh 'openmpi' cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build From 35110f26df9d936e269839d7047a473f5e6cf8c2 Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 13:58:00 +0200 Subject: [PATCH 6/7] Update cmake.yml --- .github/workflows/cmake.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 66a4ad7cc83..6e5b103dc41 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -23,7 +23,11 @@ jobs: - uses: actions/checkout@v2 - name: Install MPI run: sudo apt install -y openmpi-bin libopenmpi-dev - + - name: Install Libxc + run: | + sudo add-apt-repository ppa:hogliux/misstep + sudo apt-get install -y libxc-dev + - 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 From 91dcce7df79dadbf6d5d65912ef38d17889b984d Mon Sep 17 00:00:00 2001 From: fbischoff Date: Thu, 8 Jul 2021 13:59:12 +0200 Subject: [PATCH 7/7] Update cmake.yml --- .github/workflows/cmake.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 6e5b103dc41..0c2940e3152 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -25,7 +25,6 @@ jobs: run: sudo apt install -y openmpi-bin libopenmpi-dev - name: Install Libxc run: | - sudo add-apt-repository ppa:hogliux/misstep sudo apt-get install -y libxc-dev - name: Configure CMake