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 3232 FC : gfortran-${{ matrix.gcc-version }}
3333
3434 steps :
35-
36- - name : install ninja
37- run : sudo apt install --no-install-recommends ninja-build
38-
3935 - uses : actions/checkout@v4
4036
41- - run : cmake --workflow --preset debug
42- - run : cmake --workflow --preset release
37+ - uses : ./.github/workflows/composite-unix
4338
4439
4540 valgrind-memory :
@@ -75,14 +70,27 @@ jobs:
7570 steps :
7671 - uses : actions/checkout@v4
7772
78- - name : install ninja
79- run : sudo apt install --no-install-recommends ninja-build
73+ - uses : ./.github/workflows/composite-unix
8074
81- - run : cmake --workflow --preset debug
82- - run : cmake --workflow --preset release
8375
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
8694
8795
8896 windows :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,23 +20,16 @@ runs:
2020 - name : MacoS GCC workaround
2121 shell : bash
2222 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'
2424 # https://docs.brew.sh/Xcode
2525 # https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/os/mac/xcode.rb#L20
2626
27- - run : cmake --preset multi
27+ - run : cmake --workflow -- preset debug
2828 shell : bash
2929
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
3531 shell : bash
3632
37- - run : cmake --build --preset release --parallel 1
38- shell : bash
33+ - run : cat build/CMakeFiles/CMakeConfigureLog.yaml
3934 if : ${{ failure() }}
40-
41- - run : ctest --preset release
4235 shell : bash
Original file line number Diff line number Diff line change 11# Interoperability examples between C, C++ and Fortran
22
33[ ![ 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 )
54[ ![ 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 )
65
76Fortran subroutines and functions are easily called from C and C++.
You can’t perform that action at this time.
0 commit comments