1- name : LAGraph CI
1+ name : LAGraph CI with Builtin GraphBLAS
22
33on :
44 workflow_dispatch :
@@ -13,29 +13,25 @@ jobs:
1313 strategy :
1414 matrix :
1515 config :
16- - {grb_version: 9.1.0, conda_grb_package_hash: hd29ac08, conda_extension: conda }
16+ - {grb_version: 9.3.1 }
1717 steps :
1818 - name : Checkout
19192020 - name : Install tools for build
2121 run : |
2222 sudo apt install -y lcov
23- - name : Get GraphBLAS binaries
23+ - name : Build GraphBLAS
2424 run : |
25- mkdir graphblas-binaries
26- cd graphblas-binaries
27- wget --quiet https://anaconda.org/conda-forge/graphblas/${{ matrix.config.grb_version }}/download/linux-64/graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
28- if [ ${{ matrix.config.conda_extension }} == "tar.bz2" ]; then
29- tar xf graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
30- else
31- unzip graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
32- tar xf pkg-graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.tar.zst
33- fi
25+ git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git
26+ cd GraphBLAS
27+ git checkout tags/v${{ matrix.config.grb_version }}
28+ make compact
29+ sudo make install
3430 cd ..
3531 - name : Build project
3632 run : |
37- export GRAPHBLAS_INCLUDE_DIR=`pwd`/graphblas-binaries /include/suitesparse
38- export GRAPHBLAS_LIBRARY=`pwd`/graphblas-binaries /lib/libgraphblas.so
33+ export GRAPHBLAS_INCLUDE_DIR=`pwd`/GraphBLAS /include/suitesparse
34+ export GRAPHBLAS_LIBRARY=`pwd`/GraphBLAS /lib/libgraphblas.so
3935 cd build
4036 cmake .. -DCOVERAGE=1 -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY}
4137 JOBS=2 make
5753 strategy :
5854 matrix :
5955 config :
60- - {grb_version: 9.1.0, conda_grb_package_hash: heb48c95, conda_extension: conda }
56+ - {grb_version: 9.3.1 }
6157 steps :
6258 - name : Checkout
6359@@ -66,22 +62,18 @@ jobs:
6662 brew tap-new libomp/cask
6763 brew extract --version=14.0.6 libomp libomp/cask
686469- - name : Get GraphBLAS binaries
65+ - name : Build GraphBLAS
7066 run : |
71- mkdir graphblas-binaries
72- cd graphblas-binaries
73- wget --quiet https://anaconda.org/conda-forge/graphblas/${{ matrix.config.grb_version }}/download/osx-64/graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
74- if [ ${{ matrix.config.conda_extension }} == "tar.bz2" ]; then
75- tar xf graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
76- else
77- unzip graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
78- tar xf pkg-graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.tar.zst
79- fi
67+ git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git
68+ cd GraphBLAS
69+ git checkout tags/v${{ matrix.config.grb_version }}
70+ make compact
71+ sudo make install
8072 cd ..
8173 - name : Build project
8274 run : |
83- export GRAPHBLAS_INCLUDE_DIR=`pwd`/graphblas-binaries /include/suitesparse
84- export GRAPHBLAS_LIBRARY=`pwd`/graphblas-binaries /lib/libgraphblas.dylib
75+ export GRAPHBLAS_INCLUDE_DIR=`pwd`/GraphBLAS /include/suitesparse
76+ export GRAPHBLAS_LIBRARY=`pwd`/GraphBLAS /lib/libgraphblas.dylib
8577 # adding an extra line to the CMakeLists.txt file to locate the libomp instance installed by brew
8678 echo 'include_directories("/usr/local/opt/libomp/include")' | cat - CMakeLists.txt
8779 cd build
0 commit comments