Skip to content

Commit

Permalink
CI: Fix failing CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Mar 29, 2024
1 parent 8d9035e commit da56a92
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
env:
PLATFORM: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
Expand All @@ -108,7 +108,7 @@ jobs:
bundle exec rake gem:${PLATFORM}
- name: Upload binary gem
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gem-${{ matrix.platform }}
path: pkg/*-*-*.gem
Expand Down Expand Up @@ -157,15 +157,30 @@ jobs:

runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: ruby --version
- name: Download gem-${{matrix.platform}}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}
- name: Update rubygems - ruby-3.0
if: matrix.ruby == '3.0'
run: |
gem install --no-doc rubygems-update -v 3.5.7
update_rubygems
- name: Update rubygems - ruby-2.6 to 2.7
if: matrix.ruby == '2.6' || matrix.ruby == '2.7'
run: |
gem install --no-doc rubygems-update -v 3.4.22
update_rubygems
- name: Update rubygems - ruby-2.5
if: matrix.ruby == '2.5'
run: |
gem install --no-doc rubygems-update -v 3.3.27
update_rubygems
- name: Install gem-${{matrix.platform}}
run: gem install --local *.gem --verbose
- name: Run tests
Expand All @@ -174,7 +189,7 @@ jobs:
ruby -rffi -S rake test
job_fat_binary_multiarch:
name: multiarch (${{matrix.platform}} on ${{matrix.from_image}})
name: multiarch (${{matrix.platform}} on ${{matrix.from_image}} ${{matrix.image_platform}})
needs: rcd_build
strategy:
fail-fast: false
Expand All @@ -197,15 +212,15 @@ jobs:
gem_platform: x86-linux-musl
dockerfile: alpine
- from_image: alpine
image_platform: linux/arm32v6
image_platform: linux/arm/v6
gem_platform: arm-linux-musl
dockerfile: alpine

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download gem-${{matrix.gem_platform}}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.gem_platform }}
- name: Build image and Run tests
Expand Down

0 comments on commit da56a92

Please sign in to comment.