From 42ab09a1d20de9107b385c4e76e95a22f935a1f2 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 17 Jan 2024 17:43:56 -0500 Subject: [PATCH] wip: extract testing matrices for x86-linux gnu and musl --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 857359a..49d8024 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -256,6 +256,60 @@ jobs: ruby -rrcd_test -S rake test " + test_x86-linux-gnu: + name: x86-linux-gnu + needs: build_native_gem + strategy: + fail-fast: false + matrix: + ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"] + platform: [x86-linux, x86-linux-gnu] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Download gem-${{ matrix.platform }} + uses: actions/download-artifact@v3 + with: + name: gem-${{ matrix.platform }} + - name: Run tests + run: | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker run --rm -v $PWD:/work -w /work \ + --platform=linux/386 ruby:${{ matrix.ruby }} \ + sh -c " + gem install --local *.gem --verbose && + cd test/rcd_test/ && + bundle install && + ruby -rrcd_test -S rake test + " + + test_x86-linux-musl: + name: x86-linux-musl + needs: build_native_gem + strategy: + fail-fast: false + matrix: + ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"] + platform: [x86-linux-musl] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Download gem-${{ matrix.platform }} + uses: actions/download-artifact@v3 + with: + name: gem-${{ matrix.platform }} + - name: Run tests + run: | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker run --rm -v $PWD:/work -w /work \ + --platform=linux/386 ruby:${{ matrix.ruby }}-alpine \ + sh -c " + gem install --local *.gem --verbose && + cd test/rcd_test/ && + bundle install && + ruby -rrcd_test -S rake test + " + test_native_gem: name: test native needs: build_native_gem