From c3a57891f4f4a13a52e6278e77b6f50c30635eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan-David=20Schr=C3=B6der?= Date: Mon, 23 Mar 2020 04:41:26 +0100 Subject: [PATCH] #5 Introducing windows Github Actions workflow --- .github/workflows/cpythonwindowsbuild.yml | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/cpythonwindowsbuild.yml diff --git a/.github/workflows/cpythonwindowsbuild.yml b/.github/workflows/cpythonwindowsbuild.yml new file mode 100644 index 00000000..0e7153ca --- /dev/null +++ b/.github/workflows/cpythonwindowsbuild.yml @@ -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