Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/install_gvec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Testing

on:
push:
branches:
- main
- devel
pull_request:
branches:
- main
- devel

jobs:
macos-latest:
runs-on: macos-latest
env:
OMPI_MCA_rmaps_base_oversubscribe: 1 # Linux
PRRTE_MCA_rmaps_base_oversubscribe: 1 # MacOS

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v5

# https://docs.github.com/en/actions/tutorials/build-and-test-code/python
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13

# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"

# https://gvec.readthedocs.io/latest/user/install.html#prerequisites
- name: Install dependencies
shell: bash
run: |
brew update
brew install cmake
brew install netcdf-fortran
brew install pkgconf
brew reinstall gcc # Note: We have to reinstall gcc!
brew install lapack

- name: Show installed packages
shell: bash
run: |
cmake --version
make -v
which gfortran || echo "could not find gfortran"
which gcc || echo "could not find gcc"
which g++ || echo "could not find g++"

- name: Install gvec
shell: bash
run: pip install gvec
Loading