Skip to content

Commit

Permalink
apacheGH-36692: [CI][Packaging] Pin gemfury to 0.12.0 due to issue wi…
Browse files Browse the repository at this point in the history
…th faraday dependency (apache#36693)

### Rationale for this change

Some nightly wheel jobs have failed to upload.

### What changes are included in this PR?

Install required gem dependency.

### Are these changes tested?

Yes, crossbow tasks

### Are there any user-facing changes?

No
* Closes: apache#36692

Lead-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
  • Loading branch information
2 people authored and loicalleyne committed Nov 13, 2023
1 parent 810d322 commit 69ea006
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions dev/tasks/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,25 @@ on:
run: |
sudo apt update
sudo apt install -y ruby-full
- name: Set up Ruby by GitHub Actions
if: runner.arch == 'X64' && runner.os != 'macOS'
uses: ruby/setup-ruby@v1
with:
ruby-version: "ruby"
- name: Install gemfury client on ARM self-hosted
if: runner.arch != 'X64'
run: |
# GH-36692: Pin gemfury due to wrong faraday dependency declaration.
gem install --user-install gemfury -v 0.12.0
ruby -r rubygems -e 'puts("#{Gem.user_dir}/bin")' >> $GITHUB_PATH
- name: Install gemfury client
if: runner.arch == 'X64'
run: |
# GH-36692: Pin gemfury due to wrong faraday dependency declaration.
gem install gemfury -v 0.12.0
- name: Upload package to Gemfury
shell: bash
run: |
PATH=$(echo $(ruby -r rubygems -e 'puts Gem.user_dir') | sed "s/C:\//\/c\//")/bin:$PATH
gem install --user-install gemfury
fury push \
--api-token=${CROSSBOW_GEMFURY_TOKEN} \
--as=${CROSSBOW_GEMFURY_ORG} \
Expand Down

0 comments on commit 69ea006

Please sign in to comment.