Skip to content

Commit c74a30e

Browse files
committed
Format windows ci file
1 parent 91dcc50 commit c74a30e

File tree

1 file changed

+65
-64
lines changed

1 file changed

+65
-64
lines changed

.github/workflows/ci_windows.yml

Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI_windows
33
on: [push, pull_request]
44

55
env:
6-
CTEST_TIME_TIMEOUT: "5" # some failures hang forever
6+
CTEST_TIME_TIMEOUT: "5" # some failures hang forever
77
CMAKE_GENERATOR: Ninja
88

99
jobs:
@@ -12,79 +12,80 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
include: [
16-
{ msystem: MSYS, arch: x86_64 },
17-
{ msystem: MINGW64, arch: x86_64 },
18-
{ msystem: MINGW32, arch: i686 }
19-
]
15+
include:
16+
[
17+
{ msystem: MSYS, arch: x86_64 },
18+
{ msystem: MINGW64, arch: x86_64 },
19+
{ msystem: MINGW32, arch: i686 },
20+
]
2021
defaults:
2122
run:
2223
shell: msys2 {0}
2324
steps:
24-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v2
2526

26-
- name: Setup MinGW native environment
27-
uses: msys2/setup-msys2@v2
28-
if: contains(matrix.msystem, 'MINGW')
29-
with:
30-
msystem: ${{ matrix.msystem }}
31-
update: false
32-
install: >-
33-
git
34-
mingw-w64-${{ matrix.arch }}-gcc
35-
mingw-w64-${{ matrix.arch }}-gcc-fortran
36-
mingw-w64-${{ matrix.arch }}-python
37-
mingw-w64-${{ matrix.arch }}-python-pip
38-
mingw-w64-${{ matrix.arch }}-python-setuptools
39-
mingw-w64-${{ matrix.arch }}-cmake
40-
mingw-w64-${{ matrix.arch }}-ninja
27+
- name: Setup MinGW native environment
28+
uses: msys2/setup-msys2@v2
29+
if: contains(matrix.msystem, 'MINGW')
30+
with:
31+
msystem: ${{ matrix.msystem }}
32+
update: false
33+
install: >-
34+
git
35+
mingw-w64-${{ matrix.arch }}-gcc
36+
mingw-w64-${{ matrix.arch }}-gcc-fortran
37+
mingw-w64-${{ matrix.arch }}-python
38+
mingw-w64-${{ matrix.arch }}-python-pip
39+
mingw-w64-${{ matrix.arch }}-python-setuptools
40+
mingw-w64-${{ matrix.arch }}-cmake
41+
mingw-w64-${{ matrix.arch }}-ninja
4142
42-
- name: Setup msys POSIX environment
43-
uses: msys2/setup-msys2@v2
44-
if: contains(matrix.msystem, 'MSYS')
45-
with:
46-
msystem: MSYS
47-
update: false
48-
install: >-
49-
git
50-
mingw-w64-x86_64-gcc
51-
mingw-w64-x86_64-gcc-fortran
52-
python
53-
python-pip
54-
cmake
55-
ninja
43+
- name: Setup msys POSIX environment
44+
uses: msys2/setup-msys2@v2
45+
if: contains(matrix.msystem, 'MSYS')
46+
with:
47+
msystem: MSYS
48+
update: false
49+
install: >-
50+
git
51+
mingw-w64-x86_64-gcc
52+
mingw-w64-x86_64-gcc-fortran
53+
python
54+
python-pip
55+
cmake
56+
ninja
5657
57-
- name: Install fypp
58-
run: pip install fypp
58+
- name: Install fypp
59+
run: pip install fypp
5960

60-
- run: >-
61-
PATH=$PATH:/mingw64/bin/ cmake
62-
-Wdev
63-
-B build
64-
-DCMAKE_BUILD_TYPE=Debug
65-
-DCMAKE_Fortran_FLAGS_DEBUG="-Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fbacktrace"
66-
-DCMAKE_MAXIMUM_RANK:String=4
67-
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
68-
env:
69-
FC: gfortran
70-
CC: gcc
71-
CXX: g++
61+
- run: >-
62+
PATH=$PATH:/mingw64/bin/ cmake
63+
-Wdev
64+
-B build
65+
-DCMAKE_BUILD_TYPE=Debug
66+
-DCMAKE_Fortran_FLAGS_DEBUG="-Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fbacktrace"
67+
-DCMAKE_MAXIMUM_RANK:String=4
68+
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
69+
env:
70+
FC: gfortran
71+
CC: gcc
72+
CXX: g++
7273
73-
- name: CMake build
74-
run: PATH=$PATH:/mingw64/bin/ cmake --build build --parallel
74+
- name: CMake build
75+
run: PATH=$PATH:/mingw64/bin/ cmake --build build --parallel
7576

76-
- name: catch build fail
77-
run: PATH=$PATH:/mingw64/bin/ cmake --build build --verbose --parallel 1
78-
if: failure()
77+
- name: catch build fail
78+
run: PATH=$PATH:/mingw64/bin/ cmake --build build --verbose --parallel 1
79+
if: failure()
7980

80-
- name: CTest
81-
run: PATH=$PATH:/mingw64/bin/ ctest --test-dir build --output-on-failure --parallel -V -LE quadruple_precision
81+
- name: CTest
82+
run: PATH=$PATH:/mingw64/bin/ ctest --test-dir build --output-on-failure --parallel -V -LE quadruple_precision
8283

83-
- uses: actions/upload-artifact@v1
84-
if: failure()
85-
with:
86-
name: WindowsCMakeTestlog
87-
path: build/Testing/Temporary/LastTest.log
84+
- uses: actions/upload-artifact@v1
85+
if: failure()
86+
with:
87+
name: WindowsCMakeTestlog
88+
path: build/Testing/Temporary/LastTest.log
8889

89-
- name: Install project
90-
run: PATH=$PATH:/mingw64/bin/ cmake --install build
90+
- name: Install project
91+
run: PATH=$PATH:/mingw64/bin/ cmake --install build

0 commit comments

Comments
 (0)