1- name : LAGraph CI
1+ name : LAGraph CI with Builtin GraphBLAS
22
33on :
44 workflow_dispatch :
@@ -13,38 +13,34 @@ jobs:
1313 strategy :
1414 matrix :
1515 config :
16- - {grb_version: 7.1.0, conda_grb_package_hash: h27087fc, conda_extension: tar.bz2}
17- - {grb_version: 7.3.0, conda_grb_package_hash: h27087fc, conda_extension: tar.bz2}
18- - {grb_version: 7.4 .1, conda_grb_package_hash: hcb278e6, conda_extension: conda }
16+ # if there are multiple items in this list, only use should
17+ # deployit=true for just one of them.
18+ - {grb_version: 9.3 .1, deployit: true }
1919 steps :
2020 - name : Checkout
21212222 - name : Install tools for build
2323 run : |
2424 sudo apt install -y lcov
25- - name : Get GraphBLAS binaries
25+ - name : Build GraphBLAS
2626 run : |
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
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
3632 cd ..
3733 - name : Build project
3834 run : |
39- export GRAPHBLAS_INCLUDE_DIR=`pwd`/graphblas-binaries /include
40- export GRAPHBLAS_LIBRARY=`pwd`/graphblas-binaries /lib/libgraphblas.so
35+ export GRAPHBLAS_INCLUDE_DIR=`pwd`/GraphBLAS /include/suitesparse
36+ export GRAPHBLAS_LIBRARY=`pwd`/GraphBLAS /lib/libgraphblas.so
4137 cd build
4238 cmake .. -DCOVERAGE=1 -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY}
4339 JOBS=2 make
4440 make test_coverage
4541 - name : Deploy
464247- if : matrix.config.grb_version == '7.4.1' && github.event_name == 'push' && github.ref == 'refs/heads/stable'
43+ if : matrix.config.deployit && github.event_name == 'push' && github.ref == 'refs/heads/stable'
4844 with :
4945 branch : gh-pages
5046 folder : build/test_coverage/
5955 strategy :
6056 matrix :
6157 config :
62- - {grb_version: 7.1.0, conda_grb_package_hash: h7881ed4, conda_extension: tar.bz2}
63- - {grb_version: 7.3.0, conda_grb_package_hash: ha894c9a, conda_extension: tar.bz2}
64- - {grb_version: 7.4.1, conda_grb_package_hash: ha894c9a, conda_extension: conda}
58+ - {grb_version: 9.3.1}
6559 steps :
6660 - name : Checkout
6761@@ -70,22 +64,18 @@ jobs:
7064 brew tap-new libomp/cask
7165 brew extract --version=14.0.6 libomp libomp/cask
726673- - name : Get GraphBLAS binaries
67+ - name : Build GraphBLAS
7468 run : |
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
69+ git clone https://github.com/DrTimothyAldenDavis/GraphBLAS.git
70+ cd GraphBLAS
71+ git checkout tags/v${{ matrix.config.grb_version }}
72+ make compact
73+ sudo make install
8474 cd ..
8575 - name : Build project
8676 run : |
87- export GRAPHBLAS_INCLUDE_DIR=`pwd`/graphblas-binaries /include
88- export GRAPHBLAS_LIBRARY=`pwd`/graphblas-binaries /lib/libgraphblas.dylib
77+ export GRAPHBLAS_INCLUDE_DIR=`pwd`/GraphBLAS /include/suitesparse
78+ export GRAPHBLAS_LIBRARY=`pwd`/GraphBLAS /lib/libgraphblas.dylib
8979 # adding an extra line to the CMakeLists.txt file to locate the libomp instance installed by brew
9080 echo 'include_directories("/usr/local/opt/libomp/include")' | cat - CMakeLists.txt
9181 cd build
0 commit comments