Skip to content

Commit 7413f18

Browse files
committed
Update CI to install GraphBLAS from conda-forge and/or source
1 parent 3acd2e2 commit 7413f18

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
18-
os: ["ubuntu-latest"]
19-
# python-version: [3.7, 3.8, 3.9]
20-
python-version: [3.8]
17+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
18+
python-version: ["3.7", "3.8", "3.9", "3.10"]
19+
source: ["source"]
20+
graphblas-version: ["6.0.0"]
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v2
@@ -29,18 +29,23 @@ jobs:
2929
environment-file: continuous_integration/environment.yml
3030
channels: conda-forge
3131
activate-environment: suitesparse-graphblas
32-
- name: Build
32+
- name: GraphBLAS (from conda-forge)
33+
if: (contains(matrix.source, 'conda-forge'))
34+
run: |
35+
conda install -c conda-forge graphblas=${{ matrix.graphblas-version }}
36+
- name: GraphBLAS (from source)
37+
if: (contains(matrix.source, 'source'))
3338
run: |
34-
# sh suitesparse.sh refs/tags/6.0.0
35-
curl -L https://github.com/DrTimothyAldenDavis/GraphBLAS/archive/refs/tags/v6.0.0.tar.gz | tar xzf -
36-
pushd GraphBLAS-6.0.0/build
39+
# sh suitesparse.sh refs/tags/${{ matrix.graphblas-version }}
40+
curl -L https://github.com/DrTimothyAldenDavis/GraphBLAS/archive/refs/tags/v${{ matrix.graphblas-version }}.tar.gz | tar xzf -
41+
pushd GraphBLAS-${{ matrix.graphblas-version }}/build
3742
echo ${CONDA_PREFIX}
38-
3943
cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release ..
4044
make JOBS=16
4145
make install
4246
popd
43-
47+
- name: Build
48+
run: |
4449
python setup.py build_ext --inplace
4550
python setup.py develop
4651
- name: Test

continuous_integration/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
# - graphblas=5.1.10
6+
# - graphblas=6.0.0
77
- cffi
88
- cython
99
- numpy

0 commit comments

Comments
 (0)