Skip to content

Commit 11e0295

Browse files
committed
OpenBLAS example in CI
1 parent c230a81 commit 11e0295

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/meta.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ jobs:
9797
run: |
9898
sudo apt-get update
9999
sudo apt install -y -q openmpi-bin libopenmpi-dev hwloc fabric libhdf5-dev \
100-
libhdf5-fortran-102 libnetcdf-dev libnetcdff-dev
100+
libhdf5-fortran-102 libnetcdf-dev libnetcdff-dev libopenblas-dev
101101
102102
- name: (Ubuntu) Install MPICH
103103
if: contains(matrix.os,'ubuntu') && contains(matrix.mpi,'mpich')
104104
run: |
105105
sudo apt-get update
106106
sudo apt install -y -q mpich hwloc fabric libhdf5-dev libhdf5-fortran-102 \
107-
libnetcdf-dev libnetcdff-dev
107+
libnetcdf-dev libnetcdff-dev libopenblas-dev
108108
109109
- name: (Ubuntu) Retrieve Intel toolchain
110110
if: contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
@@ -238,6 +238,11 @@ jobs:
238238
brew install netcdf
239239
brew install netcdf-fortran
240240
241+
- name: (macOS) Install homebrew OpenBLAS
242+
if: contains(matrix.os,'macos')
243+
run: |
244+
brew install openblas
245+
241246
# Phase 1: Bootstrap fpm with existing version
242247
- name: Install fpm
243248
uses: fortran-lang/setup-fpm@v5
@@ -345,4 +350,3 @@ jobs:
345350
shell: bash
346351
run: |
347352
ci/meta_tests.sh "$PWD/${{ env.FPM_RELEASE }}"
348-

ci/meta_tests.sh

+5
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,10 @@ pushd metapackage_netcdf
5252
"$fpm" run --verbose
5353
popd
5454

55+
pushd metapackage_blas
56+
"$fpm" build --verbose
57+
"$fpm" run --verbose
58+
popd
59+
5560
# Cleanup
5661
rm -rf ./*/build

0 commit comments

Comments
 (0)