-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
81 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This workflow will install compilers and packges on windows platform | ||
|
||
name: windows package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
windows_package: | ||
runs-on: windows-2019 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
python-version: ["3.6","3.7", "3.8"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- shell: bash -l {0} | ||
run: | | ||
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/ | ||
export CLIMT_OPT_FLAGS=-fno-asynchronous-unwind-tables | ||
conda activate test | ||
which python | ||
conda install -c msys2 m2w64-gcc m2w64-gcc-fortran m2w64-winpthreads-git m2w64-openblas | ||
conda install libpython | ||
which gcc | ||
which gfortran | ||
cp $COMPILER_PATH/x86_64-w64-mingw32-gcc-ar.exe $COMPILER_PATH/x86_64-w64-mingw32-ar.exe | ||
printf '[build]\r\ncompiler=mingw32\r\n' > $HOME/pydistutils.cfg | ||
ls $HOME; cat $HOME/pydistutils.cfg | ||
python -m pip install -r requirements_dev.txt | ||
touch libmsvcr140.dll | ||
cp /c/Miniconda/envs/test/Library/bin/vcruntime140.dll /c/Miniconda/envs/test/Library/bin/msvcr140.dll | ||
ls -l | ||
python setup.py develop | ||
py.test -v | ||
- if: ${{ matrix.python-version == '3.6' }} | ||
run: | | ||
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/ | ||
python setup.py sdist | ||
- if: ${{ github.event_name == 'release' }} | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
run: | | ||
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/ | ||
export CLIMT_OPT_FLAGS=-fno-asynchronous-unwind-tables | ||
python setup.py bdist_wheel | ||
python -m pip install twine | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.16.14 | ||
current_version = 0.16.25 | ||
commit = True | ||
tag = False | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters