forked from seahorce-scidac/REMORA
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.88 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
55
56
57
58
59
60
61
name: MacOS
on: [pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-macos
cancel-in-progress: true
jobs:
MacOS-Clang:
name: Apple [email protected]
runs-on: macos-latest
# env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual"}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Dependencies
run: Submodules/AMReX/.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: Configure Project and Generate Build System
run: |
cmake \
-B${{runner.workspace}}/REMORA/build \
-DBUILD_SHARED_LIBS:BOOL=TRUE \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_BUILD_TYPE:STRING=Debug \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DREMORA_DIM:STRING=3 \
-DREMORA_ENABLE_MPI:BOOL=TRUE \
-DREMORA_ENABLE_TESTS:BOOL=TRUE \
-DREMORA_ENABLE_ALL_WARNINGS:BOOL=TRUE \
-DREMORA_ENABLE_FCOMPARE:BOOL=TRUE \
${{github.workspace}};
- name: Compile and Link
run: |
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=250M
export CCACHE_SLOPPINESS=time_macros
ccache -z
cmake --build ${{runner.workspace}}/REMORA/build --parallel 2 --verbose
du -hs ~/Library/Caches/ccache
ccache -s
- name: CMake Tests # see file REMORA/Tests/CTestList.cmake
run: |
ctest -L regression -VV
working-directory: ${{runner.workspace}}/REMORA/build