File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 31
31
# version: new
32
32
# container: gmao/llvm-flang:latest
33
33
# extra_flags: -g
34
+ - os : ubuntu-24.04
35
+ compiler : ifx
36
+ version : 2025.1.0
37
+ error_stop_code : 128
38
+ extra_flags : -g
39
+ container : intel/fortran-essentials:2025.1.0-0-devel-ubuntu24.04
40
+ # container: intel/oneapi-hpckit:2025.1.0-0-devel-ubuntu24.04
41
+ - os : ubuntu-22.04
42
+ compiler : ifx
43
+ version : 2025.0.0
44
+ error_stop_code : 128
45
+ extra_flags : -g
46
+ container : intel/fortran-essentials:2025.0.0-0-devel-ubuntu22.04
34
47
35
48
exclude :
36
49
- os : ubuntu-22.04
64
77
set -x
65
78
if test "$FC" = "flang" ; then \
66
79
echo "FPM_FC=flang-new" >> "$GITHUB_ENV" ; \
80
+ elif test "$FC" = "ifx" ; then \
81
+ echo "FPM_FC=ifx" >> "$GITHUB_ENV" ; \
67
82
else \
68
83
echo "FPM_FC=gfortran-${GCC_VERSION}" >> "$GITHUB_ENV" ; \
69
84
fi
85
+ if test -n "${{ matrix.error_stop_code }}" ; then \
86
+ echo "ERROR_STOP_CODE=${{ matrix.error_stop_code }}" >> "$GITHUB_ENV" ; \
87
+ else \
88
+ echo "ERROR_STOP_CODE=1" >> "$GITHUB_ENV" ; \
89
+ fi
70
90
71
91
- name : Setup FPM
72
92
uses : fortran-lang/setup-fpm@main
@@ -105,7 +125,7 @@ jobs:
105
125
run : |
106
126
set -x
107
127
fpm test ${FPM_FLAGS} --flag "${{ matrix.EXTRA_FLAGS }}"
108
- ( set +e ; fpm run --example false-assertion ${FPM_FLAGS} --flag "${{ matrix.EXTRA_FLAGS }}" ; test $? = 1 )
109
- ( set +e ; fpm run --example invoke-via-macro ${FPM_FLAGS} --flag "${{ matrix.EXTRA_FLAGS }}" ; test $? = 1 )
128
+ ( set +e ; fpm run --example false-assertion ${FPM_FLAGS} --flag "${{ matrix.EXTRA_FLAGS }}" ; test $? = $ERROR_STOP_CODE )
129
+ ( set +e ; fpm run --example invoke-via-macro ${FPM_FLAGS} --flag "${{ matrix.EXTRA_FLAGS }}" ; test $? = $ERROR_STOP_CODE )
110
130
111
131
You can’t perform that action at this time.
0 commit comments