Added GH actions for windows and Mac #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mac | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
gnu: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
gcc_version: [12, 13, 14] | |
build_type: [Debug, Release] | |
env: | |
FC: gfortran-${{ matrix.gcc_version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: brew install netcdf netcdf-fortran | |
- name: Run Cmake | |
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
- name: Build | |
run: cmake --build build --verbose |