File tree Expand file tree Collapse file tree 4 files changed +24
-64
lines changed Expand file tree Collapse file tree 4 files changed +24
-64
lines changed Original file line number Diff line number Diff line change 32
32
FC : gfortran-${{ matrix.gcc-version }}
33
33
34
34
steps :
35
-
36
- - name : install ninja
37
- run : sudo apt install --no-install-recommends ninja-build
38
-
39
35
- uses : actions/checkout@v4
40
36
41
- - run : cmake --workflow --preset debug
42
- - run : cmake --workflow --preset release
37
+ - uses : ./.github/workflows/composite-unix
43
38
44
39
45
40
valgrind-memory :
@@ -75,14 +70,27 @@ jobs:
75
70
steps :
76
71
- uses : actions/checkout@v4
77
72
78
- - name : install ninja
79
- run : sudo apt install --no-install-recommends ninja-build
73
+ - uses : ./.github/workflows/composite-unix
80
74
81
- - run : cmake --workflow --preset debug
82
- - run : cmake --workflow --preset release
83
75
84
- - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
85
- if : ${{ failure() }}
76
+ mac :
77
+ # need Apple Silicon for exception handling try_compile detection to work
78
+ runs-on : macos-14
79
+ timeout-minutes : 10
80
+
81
+ strategy :
82
+ matrix :
83
+ c : [{cc: clang, cxx: clang++}, {cc: gcc-13, cxx: g++-13}]
84
+
85
+ env :
86
+ FC : gfortran-13
87
+ CC : ${{ matrix.c.cc }}
88
+ CXX : ${{ matrix.c.cxx }}
89
+
90
+ steps :
91
+ - uses : actions/checkout@v4
92
+
93
+ - uses : ./.github/workflows/composite-unix
86
94
87
95
88
96
windows :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,23 +20,16 @@ runs:
20
20
- name : MacoS GCC workaround
21
21
shell : bash
22
22
run : sudo xcode-select --switch /Applications/Xcode_15.1.app
23
- if : runner.os == 'macOS' && ${{ env.CC == 'gcc-13' }}
23
+ if : runner.os == 'macOS' && env.CC == 'gcc-13'
24
24
# https://docs.brew.sh/Xcode
25
25
# https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/os/mac/xcode.rb#L20
26
26
27
- - run : cmake --preset multi
27
+ - run : cmake --workflow -- preset debug
28
28
shell : bash
29
29
30
- - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
31
- shell : bash
32
- if : ${{ failure() }}
33
-
34
- - run : cmake --build --preset release
30
+ - run : cmake --workflow --preset release
35
31
shell : bash
36
32
37
- - run : cmake --build --preset release --parallel 1
38
- shell : bash
33
+ - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
39
34
if : ${{ failure() }}
40
-
41
- - run : ctest --preset release
42
35
shell : bash
Original file line number Diff line number Diff line change 1
1
# Interoperability examples between C, C++ and Fortran
2
2
3
3
[ ![ ci] ( https://github.com/scivision/fortran-cpp-interface/actions/workflows/ci.yml/badge.svg )] ( https://github.com/scivision/fortran-cpp-interface/actions/workflows/ci.yml )
4
- [ ![ ci_macos] ( https://github.com/scivision/fortran-cpp-interface/actions/workflows/ci_macos.yml/badge.svg )] ( https://github.com/scivision/fortran-cpp-interface/actions/workflows/ci_macos.yml )
5
4
[ ![ oneapi-linux] ( https://github.com/scivision/fortran-cpp-interface/actions/workflows/oneapi-linux.yml/badge.svg )] ( https://github.com/scivision/fortran-cpp-interface/actions/workflows/oneapi-linux.yml )
6
5
7
6
Fortran subroutines and functions are easily called from C and C++.
You can’t perform that action at this time.
0 commit comments