-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5 Introducing windows Github Actions workflow
- Loading branch information
1 parent
b1d3e41
commit c3a5789
Showing
1 changed file
with
37 additions
and
0 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
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 |