Skip to content

Commit

Permalink
ci: cmake linux
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Feb 13, 2020
1 parent fe1a515 commit a8e5991
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/ci_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit a8e5991

Please sign in to comment.