Fix Ruby and Python workflows

This commit is contained in:
Wilson Lin 2020-01-20 20:44:47 +11:00
parent 2e61f38b01
commit 247b63f29a
3 changed files with 8 additions and 3 deletions

View File

@ -80,6 +80,6 @@ jobs:
EOF
cp ../README.md .
aws s3 mv s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/python/${{ steps.version.outputs.VERSION }}/ ./hyperbuild/. --recursive
pip3 install --upgrade setuptools wheel twine
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
python -m twine upload dist/*

View File

@ -29,13 +29,16 @@ jobs:
EOF
- name: Set up rbenv (macOS)
if: runner.os == 'macOS'
shell: bash -l {0}
run: brew install rbenv
- name: Set up rbenv (Linux)
if: runner.os == 'Linux'
shell: bash -l {0}
run: |
wget -O install-rbenv.sh https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer
bash install-rbenv.sh || true # Ignore rbenv-doctor.
- name: Set up Ruby
shell: bash -l {0}
run: |
rbenv install ${{ matrix.ruby }}
rbenv global ${{ matrix.ruby }}
@ -46,6 +49,7 @@ jobs:
profile: minimal
default: true
- name: Build Ruby native library
shell: bash -l {0}
run: cargo build --release
working-directory: ./ruby
- uses: chrislennon/action-aws-cli@v1.1

View File

@ -13,6 +13,7 @@ setuptools.setup(
long_description_content_type="text/markdown",
url="https://github.com/wilsonzlin/hyperbuild",
packages=["hyperbuild"],
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",