Skip to content

Update build.yml

Update build.yml #6

Workflow file for this run

name: Build SurfATT
on:
push:
branches: [ "devel" ]
pull_request:
branches: [ "main" ]
jobs:
LinuxBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install build-essential gfortran cmake libopenmpi-dev openmpi-bin libhdf5-dev
- name: make
run: |
mkdir build && cd build
cmake .. && make -j 4
MacosBuild:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install gcc@13 cmake open-mpi hdf5
- name: make
run: |
mkdir build && cd build
CXX=gcc-13 FC=gfortran-13 cmake .. && make -j 4