Fix Ruby and Python workflows
This commit is contained in:
parent
2e61f38b01
commit
247b63f29a
|
@ -80,6 +80,6 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
cp ../README.md .
|
cp ../README.md .
|
||||||
aws s3 mv s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/python/${{ steps.version.outputs.VERSION }}/ ./hyperbuild/. --recursive
|
aws s3 mv s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/python/${{ steps.version.outputs.VERSION }}/ ./hyperbuild/. --recursive
|
||||||
pip3 install --upgrade setuptools wheel twine
|
pip install --upgrade setuptools wheel twine
|
||||||
python3 setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
python3 -m twine upload dist/*
|
python -m twine upload dist/*
|
||||||
|
|
|
@ -29,13 +29,16 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
- name: Set up rbenv (macOS)
|
- name: Set up rbenv (macOS)
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
|
shell: bash -l {0}
|
||||||
run: brew install rbenv
|
run: brew install rbenv
|
||||||
- name: Set up rbenv (Linux)
|
- name: Set up rbenv (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
shell: bash -l {0}
|
||||||
run: |
|
run: |
|
||||||
wget -O install-rbenv.sh https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer
|
wget -O install-rbenv.sh https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer
|
||||||
bash install-rbenv.sh || true # Ignore rbenv-doctor.
|
bash install-rbenv.sh || true # Ignore rbenv-doctor.
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
|
shell: bash -l {0}
|
||||||
run: |
|
run: |
|
||||||
rbenv install ${{ matrix.ruby }}
|
rbenv install ${{ matrix.ruby }}
|
||||||
rbenv global ${{ matrix.ruby }}
|
rbenv global ${{ matrix.ruby }}
|
||||||
|
@ -46,6 +49,7 @@ jobs:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
default: true
|
default: true
|
||||||
- name: Build Ruby native library
|
- name: Build Ruby native library
|
||||||
|
shell: bash -l {0}
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
working-directory: ./ruby
|
working-directory: ./ruby
|
||||||
- uses: chrislennon/action-aws-cli@v1.1
|
- uses: chrislennon/action-aws-cli@v1.1
|
||||||
|
|
|
@ -13,6 +13,7 @@ setuptools.setup(
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/wilsonzlin/hyperbuild",
|
url="https://github.com/wilsonzlin/hyperbuild",
|
||||||
packages=["hyperbuild"],
|
packages=["hyperbuild"],
|
||||||
|
include_package_data=True,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3 :: Only",
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
|
|
Loading…
Reference in New Issue