44jobs :
55 macos-clang-build :
66 runs-on : macOS-latest
7+ strategy :
8+ matrix :
9+ build_type : [Release, Debug]
710 steps :
811 - uses : actions/checkout@v4
912 with :
3235 -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
3336 -DCMAKE_C_FLAGS="-I$(brew --prefix)/opt/libomp/include"
3437 -DCMAKE_CXX_FLAGS="-I$(brew --prefix)/opt/libomp/include"
35- -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
38+ -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install
3639 - name : Build project
3740 run : |
3841 cmake --build build --parallel
4346 uses : ./.github/actions/archive-install
4447 with :
4548 path : install
46- name : macos-clang-sanitizer-install
47- macos-clang-build-debug :
48- runs-on : macOS-latest
49- steps :
50- - uses : actions/checkout@v4
51- with :
52- submodules : recursive
53- - name : Install Xcode
54- uses : maxim-lobanov/setup-xcode@v1
55- with :
56- xcode-version : ' latest-stable'
57- - name : Setup environment
58- run : |
59- brew update-reset
60- brew install ninja mpich llvm
61- brew install libomp
62- brew link libomp --overwrite --force
63- brew install openssl
64- brew link openssl --overwrite --force
65- - name : ccache
66- uses :
hendrikmuhs/[email protected] 67- with :
68- key : ${{ runner.os }}-clang
69- create-symlink : true
70- max-size : 1G
71- - name : CMake configure
72- run : >
73- cmake -S . -B build -G Ninja
74- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
75- -DCMAKE_C_FLAGS="-I$(brew --prefix)/opt/libomp/include"
76- -DCMAKE_CXX_FLAGS="-I$(brew --prefix)/opt/libomp/include"
77- -D CMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=install
78- - name : Build project
79- run : |
80- cmake --build build --parallel
81- - name : Install project
82- run : |
83- cmake --build build --target install
84- - name : Archive installed package
85- uses : ./.github/actions/archive-install
86- with :
87- path : install
88- name : macos-clang-debug-install
49+ name : ${{ matrix.build_type == 'Debug' && 'macos-clang-debug-install' || 'macos-clang-install' }}
8950 macos-clang-test :
9051 needs :
9152 - macos-clang-build
@@ -107,11 +68,11 @@ jobs:
10768 - name : Download installed package
10869 uses : actions/download-artifact@v4
10970 with :
110- name : macos-clang-sanitizer- install
71+ name : macos-clang-install
11172 - name : Extract installed package
11273 run : |
11374 mkdir -p install
114- tar -xzvf macos-clang-sanitizer- install.tar.gz -C install
75+ tar -xzvf macos-clang-install.tar.gz -C install
11576 - name : Run func tests (MPI)
11677 run : python3 scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
11778 env :
@@ -141,11 +102,11 @@ jobs:
141102 - name : Download installed package
142103 uses : actions/download-artifact@v4
143104 with :
144- name : macos-clang-sanitizer- install
105+ name : macos-clang-install
145106 - name : Extract installed package
146107 run : |
147108 mkdir -p install
148- tar -xzvf macos-clang-sanitizer- install.tar.gz -C install
109+ tar -xzvf macos-clang-install.tar.gz -C install
149110 - name : Run tests (threads extended)
150111 run : python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
151112 env :
0 commit comments