-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #807 from mmuetzel/ci-macos
CI (macos): Query installation prefix of Homebrew
- Loading branch information
Showing
1 changed file
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: macos | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run job every Saturday at 08:20 UTC | ||
- cron: '20 8 * * 6' | ||
# push: | ||
# branches-ignore: | ||
# - '**/dev2' | ||
|
@@ -51,6 +54,8 @@ jobs: | |
brew install --overwrite [email protected] [email protected] [email protected] | ||
brew reinstall gcc | ||
brew install autoconf automake ccache cmake gmp lapack libomp mpfr openblas | ||
HOMEBREW_PREFIX=$(brew --prefix) | ||
echo "HOMEBREW_PREFIX=$(brew --prefix)" >> $GITHUB_ENV | ||
- name: prepare ccache | ||
# create key with human readable timestamp | ||
|
@@ -90,97 +95,97 @@ jobs: | |
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \ | ||
-DCMAKE_Fortran_COMPILER_LAUNCHER="ccache" \ | ||
-DBLA_VENDOR="Apple" \ | ||
-DCMAKE_PREFIX_PATH="/usr/local/opt/lapack;/usr/local/opt/openblas;/usr/local/opt/libomp" \ | ||
-DCMAKE_PREFIX_PATH="${HOMEBREW_PREFIX}/opt/lapack;${HOMEBREW_PREFIX}/opt/openblas;${HOMEBREW_PREFIX}/opt/libomp" \ | ||
.. | ||
echo "::endgroup::" | ||
echo "::group::Build $lib" | ||
cmake --build . --config Release | ||
echo "::endgroup::" | ||
done | ||
- name: check_Mongoose | ||
- name: check Mongoose | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/Mongoose/build | ||
ctest . | ||
- name: check_AMD | ||
- name: check AMD | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/AMD | ||
make demos | ||
- name: check_CAMD | ||
- name: check CAMD | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/CAMD | ||
make demos | ||
- name: check_COLAMD | ||
- name: check COLAMD | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/COLAMD | ||
make demos | ||
- name: check_CCOLAMD | ||
- name: check CCOLAMD | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/CCOLAMD | ||
make demos | ||
- name: check_CHOLMOD | ||
- name: check CHOLMOD | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/CHOLMOD | ||
make demos | ||
cd ${GITHUB_WORKSPACE}/CHOLMOD/build | ||
ctest . | ||
- name: check_CSparse | ||
- name: check CSparse | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/CSparse | ||
make demos | ||
- name: check_CXSparse | ||
- name: check CXSparse | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/CXSparse | ||
make demos | ||
- name: check_LDL | ||
- name: check LDL | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/LDL | ||
make demos | ||
- name: check_KLU | ||
- name: check KLU | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/KLU | ||
make demos | ||
- name: check_UMFPACK | ||
- name: check UMFPACK | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/UMFPACK | ||
make demos | ||
- name: check_RBio | ||
- name: check RBio | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/RBio | ||
make demos | ||
- name: check_SPQR | ||
- name: check SPQR | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/SPQR | ||
make demos | ||
- name: check_SPEX | ||
- name: check SPEX | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/SPEX | ||
make demos | ||
- name: check_GraphBLAS | ||
- name: check GraphBLAS | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/GraphBLAS | ||
make demos | ||
- name: check_LAGraph | ||
- name: check LAGraph | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/LAGraph | ||
make demos | ||
- name: check_ParU | ||
- name: check ParU | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/ParU | ||
make demos | ||
|
@@ -212,7 +217,7 @@ jobs: | |
cd ${GITHUB_WORKSPACE}/Example/build | ||
printf "::group::\033[0;32m==>\033[0m Configuring example\n" | ||
cmake \ | ||
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake;/usr/local/opt/lapack;/usr/local/opt/openblas;/usr/local/opt/libomp" \ | ||
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/lib/cmake;${HOMEBREW_PREFIX}/opt/lapack;${HOMEBREW_PREFIX}/opt/openblas;${HOMEBREW_PREFIX}/opt/libomp" \ | ||
.. | ||
echo "::endgroup::" | ||
printf "::group::\033[0;32m==>\033[0m Building example\n" | ||
|