Skip to content

Commit

Permalink
Added numpy build version
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlaw committed Nov 8, 2021
1 parent d3d81ac commit 56264bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Test and Build
on:
push:
branches: master
Expand All @@ -25,27 +25,7 @@ jobs:
shell: bash
- name: Install Pydivsufsort And Other Dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install flake8 pytest
git submodule init
git submodule update
mkdir tempbuild
cd tempbuild
cmake -DBUILD_DIVSUFSORT64=ON -DBUILD_EXAMPLES=OFF -DUSE_OPENMP=ON $PLATFORM_OPTION ../libdivsufsort
if [ "$RUNNER_OS" == "Windows" ]; then
cmake --build . --config Release
OUTPATH="tempbuild/examples/Release/divsufsort"
else
make
OUTPATH="tempbuild/lib/libdivsufsort"
fi
cd ..
# copy the two largest files, aka the dll of divsufsort and divsufsort64
mv $(du $OUTPATH* | sort -nr | head -n2 | cut -f2) pydivsufsort
rm -rf tempbuild
bash ./cibw_before_build.sh
python -m pip install .
shell: bash
- name: Run Flake8
Expand Down Expand Up @@ -88,7 +68,7 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
ls wheelhouse/*
shell: bash
- name: upload-builds
- name: Upload Builds
run: |
python -m pip install twine
if [ "$RUNNER_OS" == "Linux" ]; then
Expand Down
3 changes: 2 additions & 1 deletion cibw_before_build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
python -m pip uninstall numpy
python -m pip install --only-binary=:all: numpy
python -m pip install --only-binary=:all: numpy=1.10.4
python -m pip install -r requirements.txt
python -m pip install flake8 pytest
git submodule init
git submodule update

Expand Down

0 comments on commit 56264bb

Please sign in to comment.