1- name : LAGraph CI with Builtin GraphBLAS
1+ name : LAGraph CI
22
33on :
44 workflow_dispatch :
@@ -22,18 +22,22 @@ jobs:
2222 - name : Install tools for build
2323 run : |
2424 sudo apt install -y lcov
25- - name : Build GraphBLAS
25+ - name : Get GraphBLAS binaries
2626 run : |
27- git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git
28- cd GraphBLAS
29- git checkout tags/v${{ matrix.config.grb_version }}
30- make compact
31- sudo make install
27+ mkdir graphblas-binaries
28+ cd graphblas-binaries
29+ 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 }}
30+ if [ ${{ matrix.config.conda_extension }} == "tar.bz2" ]; then
31+ tar xf graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
32+ else
33+ unzip graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
34+ tar xf pkg-graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.tar.zst
35+ fi
3236 cd ..
3337 - name : Build project
3438 run : |
35- export GRAPHBLAS_INCLUDE_DIR=`pwd`/GraphBLAS /include/suitesparse
36- export GRAPHBLAS_LIBRARY=`pwd`/GraphBLAS /lib/libgraphblas.so
39+ export GRAPHBLAS_INCLUDE_DIR=`pwd`/graphblas-binaries /include
40+ export GRAPHBLAS_LIBRARY=`pwd`/graphblas-binaries /lib/libgraphblas.so
3741 cd build
3842 cmake .. -DCOVERAGE=1 -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY} -DLAGRAPH_VANILLA=${{ matrix.config.vanilla }}
3943 JOBS=2 make
@@ -66,18 +70,22 @@ jobs:
6670 brew tap-new libomp/cask
6771 brew extract --version=14.0.6 libomp libomp/cask
687269- - name : Build GraphBLAS
73+ - name : Get GraphBLAS binaries
7074 run : |
71- git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git
72- cd GraphBLAS
73- git checkout tags/v${{ matrix.config.grb_version }}
74- make compact
75- sudo make install
75+ mkdir graphblas-binaries
76+ cd graphblas-binaries
77+ 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 }}
78+ if [ ${{ matrix.config.conda_extension }} == "tar.bz2" ]; then
79+ tar xf graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
80+ else
81+ unzip graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.${{ matrix.config.conda_extension }}
82+ tar xf pkg-graphblas-${{ matrix.config.grb_version }}-${{ matrix.config.conda_grb_package_hash }}_0.tar.zst
83+ fi
7684 cd ..
7785 - name : Build project
7886 run : |
79- export GRAPHBLAS_INCLUDE_DIR=`pwd`/GraphBLAS /include/suitesparse
80- export GRAPHBLAS_LIBRARY=`pwd`/GraphBLAS /lib/libgraphblas.dylib
87+ export GRAPHBLAS_INCLUDE_DIR=`pwd`/graphblas-binaries /include
88+ export GRAPHBLAS_LIBRARY=`pwd`/graphblas-binaries /lib/libgraphblas.dylib
8189 # adding an extra line to the CMakeLists.txt file to locate the libomp instance installed by brew
8290 echo 'include_directories("/usr/local/opt/libomp/include")' | cat - CMakeLists.txt
8391 cd build
0 commit comments