Skip to content

Commit

Permalink
#5 Introducing windows Github Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
myselfhimself committed Mar 23, 2020
1 parent b1d3e41 commit c3a5789
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cpythonwindowsbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CPython GMIC Windows build
# Imitating https://github.com/vinecopulib/pyvinecopulib/blob/master/.github/workflows/pypi.yml
# and https://github.com/joerick/cibuildwheel/blob/master/.github/workflows/test.yml

on: [push]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.7']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: build on macos
working-directory: ./
env:
TWINE_PASSWORD_GITHUB_SECRET: ${{ secrets.TWINE_PASSWORD_GITHUB_SECRET }} # For build_tools.bash 11_send_to_pypi
PYTHON3: python
PIP3: pip
CIBW_BUILD: cp3*-*win*
# CIBW_ENVIRONMENT: "CC='/usr/local/opt/llvm@6/bin/clang' CXX='/usr/local/opt/llvm@6/bin/clang++' COMPILER_INDEX_STORE_ENABLE='NO'"
CIBW_BEFORE_BUILD: pip install -r dev-requirements.txt
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -W default -m pytest {project}/tests/test_gmic_py.py -vvv -rxXs
CIBW_BUILD_VERBOSITY: 3
run: |
# brew install pkg-config fftw libpng libomp llvm@6
bash build_tools.bash 1_clean_and_regrab_gmic_src
pip install git+https://github.com/joerick/cibuildwheel.git
python -m cibuildwheel --output-dir wheelhouse
#echo "Mac OS wheelhouse after cibuildwheel looks like:"
#bash build_tools.bash 11_send_to_pypi

0 comments on commit c3a5789

Please sign in to comment.