Skip to content

Compile OpenBLAS on MacOS - 5684b3f3c1ff5ba6cd32b4ecd9d932a4871aaeec #3

Compile OpenBLAS on MacOS - 5684b3f3c1ff5ba6cd32b4ecd9d932a4871aaeec

Compile OpenBLAS on MacOS - 5684b3f3c1ff5ba6cd32b4ecd9d932a4871aaeec #3

name: Compile OpenBLAS on MacOS
run-name: Compile OpenBLAS on MacOS - ${{ github.sha }}
on: push
jobs:
compile_openblas:
strategy:
matrix:
arch:
- [x86_64, SANDYBRIDGE, 10.9, macos-12]
- [arm64, ARMV8, 11.0, macos-14]
name: ${{ matrix.arch[0] }}
runs-on: ${{ matrix.arch[3] }}
steps:
- name: Compile OpenBLAS
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.arch[2] }}
run: |
curl -L -o OpenBLAS-0.3.27.tar.gz https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.27/OpenBLAS-0.3.27.tar.gz
tar -xzf OpenBLAS-0.3.27.tar.gz
sudo ln -fs /usr/local/bin/gfortran-11 /usr/local/bin/gfortran
make -C OpenBLAS-0.3.27 TARGET=${{ matrix.arch[1] }} DYNAMIC_ARCH=1
make install -C OpenBLAS-0.3.27 PREFIX=${GITHUB_WORKSPACE}/OpenBLAS
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: OpenBLAS_macos_${{ matrix.arch[0] }}
path: ./OpenBLAS
if-no-files-found: error