Skip to content

Commit

Permalink
Update fortran-build.yml for build with cmake and gfortran
Browse files Browse the repository at this point in the history
  • Loading branch information
gorges97 authored Feb 4, 2025
1 parent 0af2d94 commit 783584d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/fortran-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@ on: [push, pull_request]
env:
BUILD_DIR: _build
jobs:
gcc-cmake-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
fc: [gfortran-12]
cc: [gcc-12]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install CMake
run: pip install ninja cmake
- name: Configure build
run: cmake -B ${{ env.BUILD_DIR }} -G Ninja
env:
FC: ${{ matrix.fc }}
CC: ${{ matrix.cc }}
- name: Build project
run: cmake --build ${{ env.BUILD_DIR }}
intel-meson-build:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 783584d

Please sign in to comment.