Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix macOS #308

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/dependencies/dependencies_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ brew install gfortran || true
brew install libomp || true
brew install open-mpi || true
brew install ccache || true

python3 -m venv venv
source venv/bin/activate
python3 -m pip install -U pip setuptools wheel pytest
python3 -m pip install -U cmake
6 changes: 4 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: Build & Install
run: |
source venv/bin/activate

export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=600M
ccache -z

export CMAKE_BUILD_PARALLEL_LEVEL=3

python3 -m pip install -U pip setuptools wheel pytest
python3 -m pip install -U cmake
python3 -m pip install -v .
python3 -c "import amrex.space1d as amr; print(amr.__version__)"
python3 -c "import amrex.space2d as amr; print(amr.__version__)"
Expand All @@ -45,6 +45,8 @@ jobs:

- name: Unit tests
run: |
source venv/bin/activate

python3 -m pytest tests/


Expand Down
Loading