Skip to content

Commit a8e5991

Browse files
committed
ci: cmake linux
1 parent fe1a515 commit a8e5991

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/ci_cmake.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,34 @@ on:
1111

1212
jobs:
1313

14+
linux:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- uses: actions/setup-python@v1
19+
with:
20+
python-version: 3.7
21+
- run: |
22+
pip install cmake
23+
sudo apt -yq update
24+
sudo apt install -yq --no-install-recommends gfortran
25+
26+
- run: cmake -B build
27+
env:
28+
FC: gfortran
29+
30+
- run: cmake --build build --parallel
31+
- uses: actions/upload-artifact@v1
32+
if: failure()
33+
with:
34+
name: Linux_CMake_Testlog
35+
path: build/CMakeFiles/CMakeError.log
36+
37+
- run: ctest -V
38+
working-directory: build
39+
1440
windows:
41+
if: false
1542
runs-on: windows-latest
1643
steps:
1744
- uses: actions/checkout@v1
@@ -22,7 +49,12 @@ jobs:
2249
env:
2350
FC: gfortran
2451

25-
- run: cmake --build build --parallel
52+
- run: cmake --build build
53+
- uses: actions/upload-artifact@v1
54+
if: failure()
55+
with:
56+
name: Windows_CMake_Testlog
57+
path: build/CMakeFiles/CMakeError.log
2658

2759
- run: ctest -V
2860
working-directory: build

0 commit comments

Comments
 (0)