File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python wheel package build and publish
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ wheels :
9+ runs-on : ${{ matrix.os }}
10+ defaults :
11+ run :
12+ shell : bash -l {0}
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ os : ["ubuntu-latest"]
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v2
20+ - name : Build manylinux Python wheels
21+ uses :
RalfG/[email protected] _x86_64 22+ with :
23+ python-versions : ' cp37-cp37m cp38-cp38 cp39-cp39'
24+ build-requirements : ' cffi numpy>=1.18,<1.19 cython'
25+ pre-build-command : ${{ format('sh suitesparse.sh {0}', github.ref) }}
26+ - name : Publish wheels to PyPI
27+ env :
28+ TWINE_USERNAME : __token__
29+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
30+ run : |
31+ python -m pip install --upgrade pip
32+ pip install twine
33+ twine upload dist/*-manylinux*.whl
Original file line number Diff line number Diff line change 1+
2+ if [[ $1 =~ refs/tags/v([0-9]\. [0-9]\. [0-9]).* $ ]];
3+ then
4+ VERSION=${BASH_REMATCH[1]}
5+ else
6+ exit -1
7+ fi
8+
9+ curl -L https://github.com/DrTimothyAldenDavis/GraphBLAS/archive/refs/tags/v${VERSION} .tar.gz | tar xzf -
10+ cd GraphBLAS-${VERSION} /build
11+ cmake .. -DCMAKE_BUILD_TYPE=Release
12+ make -j$( nproc)
13+ make install
You can’t perform that action at this time.
0 commit comments