-
-
Notifications
You must be signed in to change notification settings - Fork 4
194 lines (144 loc) · 4.29 KB
/
Copy pathci.yml
File metadata and controls
194 lines (144 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
on:
push:
paths:
- "**.f90"
- "**.F90"
- "**.c"
- "**.cpp"
- "**.h"
- "**.cmake"
- "**/CMakeLists.txt"
- ".github/workflows/ci.yml"
workflow_dispatch:
# avoid wasted runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ubuntu26-gcc:
runs-on: ubuntu-26.04
timeout-minutes: 10
strategy:
matrix:
gcc-version: [15]
env:
CC: gcc-${{ matrix.gcc-version }}
CXX: g++-${{ matrix.gcc-version }}
FC: gfortran-${{ matrix.gcc-version }}
steps:
- &checkout
uses: actions/checkout@v6
- uses: ./.github/workflows/composite-unix
ubuntu26-flang:
runs-on: ubuntu-26.04
timeout-minutes: 15
strategy:
matrix:
llvm-version: [22]
env:
CC: clang-${{ matrix.llvm-version }}
CXX: clang++-${{ matrix.llvm-version }}
FC: flang-${{ matrix.llvm-version }}
steps:
- name: install Flang
run: sudo apt install --no-install-recommends flang-${{ matrix.llvm-version }}
- *checkout
- uses: ./.github/workflows/composite-unix
ubuntu24:
runs-on: ubuntu-24.04
timeout-minutes: 5
strategy:
matrix:
gcc-version: [10, 11, 12, 13, 14]
env:
CC: gcc-${{ matrix.gcc-version }}
CXX: g++-${{ matrix.gcc-version }}
FC: gfortran-${{ matrix.gcc-version }}
steps:
- name: GCC APT
if: matrix.gcc-version < 12
run: |
sudo apt update -y
sudo apt install -y --no-install-recommends gcc-${{ matrix.gcc-version }} g++-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
- *checkout
- &default-workflow
run: cmake --workflow default
valgrind-memory:
runs-on: ubuntu-26.04
needs: ubuntu26-gcc
timeout-minutes: 10
steps:
- name: install valgrind
run: |
sudo apt update
sudo apt install --no-install-recommends valgrind
- *checkout
- run: ctest -S memcheck.cmake -VV -E "sleep|string_array|string_view|binding_derived"
# just saving CI time
# linux-flang:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# strategy:
# matrix:
# llvm-version: [21]
# steps:
# - *checkout
# - name: Apt LLVM
# run: |
# wget https://apt.llvm.org/llvm.sh
# chmod +x llvm.sh
# sudo ./llvm.sh ${{ matrix.llvm-version }}
# sudo apt-get update
# - name: install Flang
# run: sudo apt install --no-install-recommends clang-${{ matrix.llvm-version }} flang-${{ matrix.llvm-version }}
# # MUST specify version here or default old Clang used despite LLVM apt docs
# - uses: ./.github/workflows/composite-unix
# env:
# CC: clang-${{ matrix.llvm-version }}
# CXX: clang++-${{ matrix.llvm-version }}
# FC: flang-${{ matrix.llvm-version }}
mac:
runs-on: macos-latest
timeout-minutes: 10
strategy:
matrix:
compiler: [{cpp: clang++, c: clang, fc: flang-new },
{cpp: clang++, c: clang, fc: gfortran-15 },
{cpp: g++-15, c: gcc-15, fc: gfortran-15 }]
env:
FC: ${{ matrix.compiler.fc }}
CC: ${{ matrix.compiler.c }}
CXX: ${{ matrix.compiler.cpp }}
name: macOS ${{ matrix.compiler.cpp }} ${{ matrix.compiler.fc }}
steps:
- name: install Flang
if: ${{ matrix.compiler.fc == 'flang-new' }}
run: brew install flang
- *checkout
- uses: ./.github/workflows/composite-unix
windows:
runs-on: windows-latest
timeout-minutes: 10
env:
CC: gcc
CXX: g++
FC: gfortran
steps:
- uses: msys2/setup-msys2@v2
id: msys2
with:
update: true
install: mingw-w64-ucrt-x86_64-gcc-fortran
- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- *checkout
- run: cmake --workflow default
- name: upload CMakeConfigureLog.yaml
if: failure() && hashFiles('build/CMakeFiles/CMakeConfigureLog.yaml') != ''
uses: actions/upload-artifact@v7
with:
name: ${{ runner.os }}-CMakeConfigureLog.yaml
path: build/CMakeFiles/CMakeConfigureLog.yaml