Attempt to fix Python and Ruby workflows
This commit is contained in:
parent
7ffd83148e
commit
75a24d2327
|
@ -86,7 +86,7 @@ jobs:
|
||||||
pip install --upgrade setuptools
|
pip install --upgrade setuptools
|
||||||
pip install --upgrade twine
|
pip install --upgrade twine
|
||||||
- name: Install B2 CLI
|
- name: Install B2 CLI
|
||||||
run: pip install --upgrade b2
|
run: sudo pip install --upgrade b2
|
||||||
- name: Pack and publish package
|
- name: Pack and publish package
|
||||||
working-directory: ./python
|
working-directory: ./python
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -48,10 +48,13 @@ jobs:
|
||||||
- name: Set up rbenv (Linux)
|
- name: Set up rbenv (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
# rbenv-installer now uses Linux brew to install Ruby, which we do not want.
|
||||||
run: |
|
run: |
|
||||||
sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
|
sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
|
||||||
wget -O install-rbenv.sh https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer
|
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||||
bash install-rbenv.sh || true # Ignore rbenv-doctor.
|
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
|
||||||
|
mkdir -p "$HOME/.rbenv/plugins"
|
||||||
|
git clone https://github.com/rbenv/ruby-build.git "$HOME/.rbenv/plugins/ruby-build"
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
run: |
|
run: |
|
||||||
|
@ -95,8 +98,8 @@ jobs:
|
||||||
ruby-version: '2.5'
|
ruby-version: '2.5'
|
||||||
- name: Install B2 CLI
|
- name: Install B2 CLI
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools
|
sudo pip install setuptools
|
||||||
pip install --upgrade b2
|
sudo pip install --upgrade b2
|
||||||
- name: Pack and publish gem
|
- name: Pack and publish gem
|
||||||
working-directory: ./ruby
|
working-directory: ./ruby
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -12,5 +12,5 @@ crate-type = ["cdylib"]
|
||||||
[dependencies]
|
[dependencies]
|
||||||
hyperbuild = "0.1.0"
|
hyperbuild = "0.1.0"
|
||||||
[dependencies.pyo3]
|
[dependencies.pyo3]
|
||||||
version = "0.9.0-alpha.1"
|
version = "=0.9.0-alpha.1"
|
||||||
features = ["extension-module"]
|
features = ["extension-module"]
|
||||||
|
|
Loading…
Reference in New Issue