-
Notifications
You must be signed in to change notification settings - Fork 19
54 lines (42 loc) · 1.45 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 🍏 macOS
on: [workflow_call]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-macos
cancel-in-progress: true
env:
CXXFLAGS: "-Werror -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -fno-operator-names -Wno-pass-failed"
jobs:
appleclang:
name: [email protected] w/o MPI
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
run: .github/workflows/dependencies/dependencies_mac.sh
- name: Set Up Cache
uses: actions/cache@v4
with:
path: ~/Library/Caches/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
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
export CCACHE_SLOPPINESS=time_macros
ccache -z
export CMAKE_BUILD_PARALLEL_LEVEL=3
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__)"
python3 -c "import amrex.space3d as amr; print(amr.__version__)"
ccache -s
du -hs ~/Library/Caches/ccache
- name: Unit tests
run: |
source venv/bin/activate
python3 -m pytest tests/
# TODO: AppleClang w/ MPI