Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary releases #624

Merged
merged 5 commits into from
Aug 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 24 additions & 31 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ environment:
HTM_CORE: "C:\\projects\\htm-core"
ARTIFACTS_DIR: "%HTM_CORE%\\build\\artifacts"
configuration: "Release"
GITHUB_TOKEN:
secure: "fX0sRFrScPzNxDgmzcihMg3m42f85w4SFKN9T2Ezq/xUrYEBGaOWAWUANj+564JS8J/WwAVWZJctAp7sUaMMEaFqcDaY9US+megZJraX2C45BmgDaGQcKHIUjrXV39gizt2jCxBXTxUxafskKF1nx93SZkKuRmy2znFt1ewFooRJisl+IEnaGqtCtqt7TLq6lRw0rYGpX94VXhapk8izv4awjjUDR2KEZu4rcBcU+Xbpi9QWLR2qLEdcShZI++M/KU7STAjTzPgcADReVnL09nd99VnhPTwYIkPau22Q3+YUpcyxho9A522ZbYkgWCBAiIqFA9X1E8XsVXJ/p2Q17cQtNu97GkKerltlioxZFy9ck1533CNew3nXd8CprMQQd4uL5rCX3C6rhdossKpKmAkUSnzuh7Duy/emzy1jGEBkQagX1YBbFxkSUaQbDL+RHW89KFiU7C/WOsoauAc3twpNB/cJbdV4V/r/9SeenCOc1KGwMt61pbpAb6Gn0B51etqYvUnAE8ZQs3qB8+cqHn85Ej6P7XzuuMICrsNj2vNvtP+frz7KICmgLTf9TzkgBEzd60YhgD1tldcT9N7+FeiAeaeGIao3pleCiqlWjJN83pWl5Dwq4ZsNodDicDtO0A4lgub+YdSgdjqetF1GAmPaw/SX6eR8J3WCNE6V95A="

## PyPI support (pip install twine)
# PYPI_USERNAME: numenta
Expand Down Expand Up @@ -109,15 +111,8 @@ build_script:
- cd %HTM_CORE%
- python setup.py install --user --force

# Build the wheel
- python setup.py bdist_wheel

# Build the github package in build/scripts/*.zip or build/scripts/*.tar.gz
- cd %HTM_CORE%\build\scripts
- cmake --build . --config Release --target PACKAGE

after_build:

# Run unit_tests (C++)
- cd %HTM_CORE%
- mkdir %ARTIFACTS_DIR%
Expand All @@ -128,12 +123,19 @@ after_build:
- cd %HTM_CORE%
- python setup.py test

# Build the wheel
- python setup.py bdist_wheel

# Build the github package in build/scripts/*.zip or build/scripts/*.tar.gz
- cd %HTM_CORE%\build\scripts
- cmake --build . --config Release --target PACKAGE

# Disable automatic tests
test: off

#artifacts:
# Non-recursive search in build folder for Wheels
# - path: '*.whl'
# # Non-recursive search in build folder for Wheels
# - path: '%HTM_CORE%\build\scripts\*.zip'

# NOTE: This is turned off and will likely be removed once deployments of
# releases are controlled from a central authority. -- Matt
Expand All @@ -148,27 +150,18 @@ test: off
# twine upload -u $env:PYPI_USERNAME -p $env:PYPI_PASSWORD -r pypi $env:HTM_CORE\bindings\py\dist\htm.bindings-$env:BINDINGS_VERSION-cp27-none-$env:wheel_name_suffix.whl
# }

#deploy:
# Iterative builds
## AWS S3 deployment
# - provider: S3
# access_key_id: AKIAIGHYSEHV3WFKOWNQ
# secret_access_key:
# secure: /8wO17Gir0XAiecJkHeE3jxOJzvyl0+uWcl7BKCuN0FC795golsL8905VmNuRl1o
# bucket: "artifacts.numenta.org"
# region: us-west-2
# set_public: true
# artifact: "htm.bindings-$(APPVEYOR_REPO_COMMIT)-cp27-none-$(wheel_name_suffix).whl"
# folder: "numenta/htm.core/releases/htm.bindings"
# on:
# branch: master

deploy:
## GitHub
# Deploy to GitHub Releases
# - provider: GitHub
# artifact: '*.whl' # upload all NuGet packages to release assets
# draft: false
# prerelease: false
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only
# see https://www.appveyor.com/docs/deployment/github/
#
release: htmcore-win64-v$(appveyor_build_version)
description: 'HTM.core binary release for Windows (64bit)' #desc is mandatory
provider: GitHub
api_key: "%GITHUB_TOKEN%"
artifact: '%HTM_CORE%\build\scripts\*.zip' # upload .zip from 'make package'
draft: false
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only