Skip to content

Commit 97de4f0

Browse files
committed
Install ruby and libyaml from apt-get
1 parent 3b56a33 commit 97de4f0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,36 @@ jobs:
3535
- { os: windows-latest, ruby: mingw }
3636
- { os: windows-latest, ruby: mswin }
3737
- { os: macos-13, ruby: 2.5 }
38-
- { os: ubuntu-24.04-ppc64le, ruby: 3.4 }
39-
- { os: ubuntu-24.04-s390x, ruby: 3.4 }
38+
- { os: ubuntu-24.04-ppc64le }
39+
- { os: ubuntu-24.04-s390x }
4040
exclude:
4141
# CRuby < 2.6 does not support macos-arm64
4242
- { os: macos-latest, ruby: 2.5 }
4343
steps:
4444
- uses: actions/checkout@v4
45+
- name: Set up Ruby (ppc64le/s390x)
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install ruby-full bundler libyaml-dev
49+
if: contains(matrix.os, 'ppc64le') || contains(matrix.os, 's390x')
4550
- name: Set up Ruby
4651
uses: ruby/setup-ruby-pkgs@v1
4752
with:
4853
ruby-version: ${{ matrix.ruby }}
4954
apt-get: "haveged libyaml-dev"
5055
brew: libyaml
5156
vcpkg: libyaml
57+
if: ${{ !(contains(matrix.os, 'ppc64le') || contains(matrix.os, 's390x')) }}
5258
- name: Set JRuby ENV vars
5359
run: |
5460
echo 'JAVA_OPTS=-Xmx1g' >> $GITHUB_ENV
5561
if: ${{ ! startsWith(matrix.ruby, 'jruby') }}
62+
- name: Install dependencies (ppc64le/s390x)
63+
run: sudo bundle install --jobs 1
64+
if: contains(matrix.os, 'ppc64le') || contains(matrix.os, 's390x')
5665
- name: Install dependencies
5766
run: bundle install --jobs 1
67+
if: ${{ !(contains(matrix.os, 'ppc64le') || contains(matrix.os, 's390x')) }}
5868
- name: Run test
5969
id: test
6070
run: rake

0 commit comments

Comments
 (0)