Skip to content

Commit

Permalink
GHA: Fix CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benlandrum authored and dalcinl committed Apr 23, 2024
1 parent c6c3a64 commit 498a085
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,37 @@ jobs:
mpi:
- mpich
- openmpi
python-version:
- "3.7"
- "3.8"
- "3.9"
py:
# - "3.7"
# - "3.8"
# - "3.9"
- "3.10"
- "3.11"
- "3.12-dev"
- "3.12"

steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.py }}

- run: |
# Install fftw
case $(uname) in
Linux)
sudo apt update && sudo apt install -y -q fftw-dev
sudo apt update
sudo apt install -y -q libfftw3-dev
echo FFTW_INCLUDE_DIR=/usr/include >> $GITHUB_ENV
echo FFTW_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu >> $GITHUB_ENV
;;
Darwin)
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install fftw
prefix=$(brew --prefix fftw)
echo FFTW_INCLUDE_DIR=$prefix/include >> $GITHUB_ENV
echo FFTW_LIBRARY_DIR=$prefix/lib >> $GITHUB_ENV
;;
esac
Expand Down

0 comments on commit 498a085

Please sign in to comment.