From 32179883998a59ceee2b648e6ec4f7bcf6872eb2 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Wed, 17 Sep 2025 16:32:55 +0100 Subject: [PATCH] CI: Add GitHub Actions ppc64le/s390x cases --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 678b8d69..e2d54896 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,6 +77,40 @@ jobs: cd tmp ruby test/run.rb + host-ibm: + if: github.repository == 'ruby/fiddle' + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-24.04-ppc64le + - ubuntu-24.04-s390x + + steps: + - uses: actions/checkout@v5 + + - name: Set up Ruby + run: | + sudo apt-get update + sudo apt-get install ruby-full bundler libffi-dev + + - run: sudo bundle install --jobs $(nproc) + + - run: rake compile + + - run: ruby -Ilib test/run.rb + + - run: sudo rake install + + - name: Run test against installed gem + run: | + ruby -run -e mkdir -- -p tmp/ + ruby -run -e cp -- -pr test/ tmp/ + cd tmp + ruby test/run.rb + docker: name: >- ${{ matrix.service }}