From a8e5991d85a70ab19af9f4561bb1e7f38f6c80ab Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Wed, 12 Feb 2020 23:54:59 -0500 Subject: [PATCH] ci: cmake linux --- .github/workflows/ci_cmake.yml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cmake.yml b/.github/workflows/ci_cmake.yml index ecbb593..9988ef6 100644 --- a/.github/workflows/ci_cmake.yml +++ b/.github/workflows/ci_cmake.yml @@ -11,7 +11,34 @@ on: jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: 3.7 + - run: | + pip install cmake + sudo apt -yq update + sudo apt install -yq --no-install-recommends gfortran + + - run: cmake -B build + env: + FC: gfortran + + - run: cmake --build build --parallel + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: Linux_CMake_Testlog + path: build/CMakeFiles/CMakeError.log + + - run: ctest -V + working-directory: build + windows: + if: false runs-on: windows-latest steps: - uses: actions/checkout@v1 @@ -22,7 +49,12 @@ jobs: env: FC: gfortran - - run: cmake --build build --parallel + - run: cmake --build build + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: Windows_CMake_Testlog + path: build/CMakeFiles/CMakeError.log - run: ctest -V working-directory: build \ No newline at end of file