Skip to content

Commit 61abf72

Browse files
author
Rastislav Turanyi
committed
Test only against OpenBLAS on MacOS
The Apple Accelerate library is likely to need more work, so for now we'll only test with OpenBLAS
1 parent 061dcc9 commit 61abf72

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/run_tests.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
fail-fast: false
3939
matrix:
4040
compiler: [gcc, clang]
41+
blas: [OpenBLAS]
4142

4243
runs-on: macos-latest
4344

@@ -52,15 +53,21 @@ jobs:
5253
if: matrix.compiler == 'gcc'
5354
run: brew install gcc@13
5455

56+
- name: Install OpenBLAS
57+
if: matrix.blas == 'OpenBLAS'
58+
run: brew install openblas
59+
5560
- name: Compile
5661
env:
5762
CC: ${{ matrix.compiler }}
63+
BLAS_VENDOR: ${{ matrix.blas }}
5864
run: |
65+
BREW_PREFIX="$(brew --prefix)"
66+
export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:"/opt/homebrew/opt/openblas"
5967
if [ $CC = "gcc" ]; then
60-
BREW_PREFIX="$(brew --prefix)"
61-
cmake -DCMAKE_C_COMPILER=${BREW_PREFIX}/bin/gcc-13 -DBUILD_TESTING=ON -DBUILD_OPENMP_TESTS=ON -S . -B /tmp/build
68+
cmake -DCMAKE_C_COMPILER=${BREW_PREFIX}/bin/gcc-13 -DBLA_VENDOR=$BLAS_VENDOR -DBUILD_TESTING=ON -DBUILD_OPENMP_TESTS=ON -S . -B /tmp/build
6269
else
63-
cmake -DBUILD_TESTING=ON -DBUILD_OPENMP_TESTS=ON -S . -B /tmp/build
70+
cmake -DBLA_VENDOR=$BLAS_VENDOR -DBUILD_TESTING=ON -DBUILD_OPENMP_TESTS=ON -S . -B /tmp/build
6471
fi
6572
cmake --build /tmp/build
6673

0 commit comments

Comments
 (0)