1name: C/Fortran 2 3on: 4 push: 5 branches: 6 - main 7 pull_request: 8 9jobs: 10 test: 11 strategy: 12 matrix: 13 os: [ubuntu-24.04, macos-15] 14 compiler: [gcc, clang] 15 include: 16 - os: macos-15 17 compiler: apple-clang 18 19 runs-on: ${{ matrix.os }} 20 21 steps: 22 - name: Environment setup 23 uses: actions/checkout@v4 24 - name: Set compiler 25 run: | 26 case "${{ matrix.compiler }}" in 27 gcc) 28 if [[ "${{ matrix.os }}" == macos-* ]]; then 29 echo "CC=gcc-15" >> $GITHUB_ENV 30 else 31 echo "CC=gcc" >> $GITHUB_ENV 32 fi 33 ;; 34 clang) 35 if [[ "${{ matrix.os }}" == macos-* ]]; then 36 echo "CC=$(brew --prefix llvm@18)/bin/clang" >> $GITHUB_ENV 37 else 38 echo "CC=clang" >> $GITHUB_ENV 39 fi 40 ;; 41 apple-clang) 42 echo "CC=clang" >> $GITHUB_ENV 43 ;; 44 esac 45 - name: Show compiler version 46 run: $CC --version | head -1 47 - name: Build and test libCEED 48 env: 49 FC: gfortran-14 50 run: | 51 make info 52 make -j 53 make prove -j2 54