This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 943bf48876 GH-36692: [CI][Packaging] Pin gemfury to 0.12.0 due to 
issue with faraday dependency (#36693)
943bf48876 is described below

commit 943bf4887648bd14a7acc071497a4e4c39788bbe
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Aug 1 16:44:10 2023 +0200

    GH-36692: [CI][Packaging] Pin gemfury to 0.12.0 due to issue with faraday 
dependency (#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: #36692
    
    Lead-authored-by: Raúl Cumplido <[email protected]>
    Co-authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 dev/tasks/macros.jinja | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/dev/tasks/macros.jinja b/dev/tasks/macros.jinja
index 5948b663d9..757c15c937 100644
--- a/dev/tasks/macros.jinja
+++ b/dev/tasks/macros.jinja
@@ -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} \

Reply via email to