Skip to content

Commit 902c914

Browse files
committed
CI: Matrix flang-new container
1 parent b7c450c commit 902c914

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1-
name: Build with gfortran
1+
name: Build
22

33
on: [push, pull_request]
44

55

66
jobs:
7-
gfortran-build:
8-
name: gfortran-${{ matrix.gcc_version }} (${{ matrix.os }})
7+
build:
8+
name: ${{ matrix.compiler }}-${{ matrix.version }} (${{ matrix.os }})
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
fail-fast: false
1212
matrix:
1313
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
14-
gcc_version: [ 12, 13, 14 ]
14+
compiler: [ gfortran ]
15+
version: [ 12, 13, 14 ]
16+
extra_flags: [ -ffree-line-length-0 ]
17+
include:
18+
- os: ubuntu-24.04
19+
compiler: flang
20+
version: new
21+
container: gmao/llvm-flang:latest
22+
extra_flags: -g
1523
exclude:
1624
- os: ubuntu-22.04
17-
gcc_version: 13 # no package available
25+
version: 13 # no package available
1826
- os: ubuntu-22.04
19-
gcc_version: 14 # no package available
27+
version: 14 # no package available
28+
29+
container:
30+
image: ${{ matrix.container }}
2031

2132
env:
22-
GCC_V: ${{ matrix.gcc_version }}
23-
FPM_FC: gfortran-${{ matrix.gcc_version }}
24-
EXTRA_FLAGS: -ffree-line-length-0
33+
GCC_V: ${{ matrix.version }}
34+
FPM_FC: ${{ matrix.compiler }}-${{ matrix.version }}
35+
EXTRA_FLAGS: ${{ matrix.extra_flags }}
2536

2637
steps:
2738
- name: Checkout code

0 commit comments

Comments
 (0)