Skip to content

Commit 6e69df2

Browse files
committed
CI: update version of macos image and action upload artifact
1 parent 916c60e commit 6e69df2

File tree

1 file changed

+26
-36
lines changed

1 file changed

+26
-36
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: LAGraph CI
1+
name: LAGraph CI with Builtin GraphBLAS
22

33
on:
44
workflow_dispatch:
55
push:
66
branches-ignore:
7-
- '**/v1.2*'
87
- '**/*dev2'
98
pull_request:
109

@@ -14,54 +13,49 @@ jobs:
1413
strategy:
1514
matrix:
1615
config:
17-
- {grb_version: 7.4.4, conda_grb_package_hash: hcb278e6, conda_extension: conda, vanilla: 0, deploy_test_results: true}
18-
- {grb_version: 7.4.4, conda_grb_package_hash: hcb278e6, conda_extension: conda, vanilla: 1, deploy_test_results: false}
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
2121
uses: actions/[email protected]
2222
- 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
42-
cmake .. -DCOVERAGE=1 -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY} -DLAGRAPH_VANILLA=${{ matrix.config.vanilla }}
38+
cmake .. -DCOVERAGE=1 -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY}
4339
JOBS=2 make
4440
make test_coverage
4541
- name: Deploy
4642
uses: JamesIves/[email protected]
47-
if: matrix.deploy_test_results && 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/
5147
single-commit: true
5248
- name: Save output
53-
uses: actions/upload-artifact@v2.2.3
49+
uses: actions/upload-artifact@v4.6.0
5450
with:
5551
name: test_coverage
5652
path: build/test_coverage/
57-
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
5853
macos:
59-
runs-on: macos-12
54+
runs-on: macos-14
6055
strategy:
6156
matrix:
6257
config:
63-
- {grb_version: 7.4.4, conda_grb_package_hash: ha894c9a, conda_extension: conda, vanilla: 0}
64-
- {grb_version: 7.4.4, conda_grb_package_hash: ha894c9a, conda_extension: conda, vanilla: 1}
58+
- {grb_version: 9.3.1}
6559
steps:
6660
- name: Checkout
6761
uses: actions/[email protected]
@@ -70,25 +64,21 @@ jobs:
7064
brew tap-new libomp/cask
7165
brew extract --version=14.0.6 libomp libomp/cask
7266
brew install [email protected]
73-
- 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
92-
CC=gcc cmake .. -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY} -DLAGRAPH_VANILLA=${{ matrix.config.vanilla }}
82+
CC=gcc cmake .. -DGRAPHBLAS_INCLUDE_DIR=${GRAPHBLAS_INCLUDE_DIR} -DGRAPHBLAS_LIBRARY=${GRAPHBLAS_LIBRARY}
9383
JOBS=2 make
9484
make test

0 commit comments

Comments
 (0)