Skip to content

Commit 9cb47a2

Browse files
committed
wip: extract testing matrices for x86-linux gnu and musl
1 parent a5fa18a commit 9cb47a2

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.yml

+54
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,60 @@ jobs:
256256
ruby -rrcd_test -S rake test
257257
"
258258
259+
test_x86-linux-gnu:
260+
name: x86-linux-gnu
261+
needs: build_native_gem
262+
strategy:
263+
fail-fast: false
264+
matrix:
265+
ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"]
266+
platform: [x86-linux, x86-linux-gnu]
267+
runs-on: ubuntu-latest
268+
steps:
269+
- uses: actions/checkout@v3
270+
- name: Download gem-${{ matrix.platform }}
271+
uses: actions/download-artifact@v3
272+
with:
273+
name: gem-${{ matrix.platform }}
274+
- name: Run tests
275+
run: |
276+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
277+
docker run --rm -v $PWD:/work -w /work \
278+
ruby:${{ matrix.ruby }} --platform=linux/386 \
279+
sh -c "
280+
gem install --local *.gem --verbose &&
281+
cd test/rcd_test/ &&
282+
bundle install &&
283+
ruby -rrcd_test -S rake test
284+
"
285+
286+
test_x86-linux-musl:
287+
name: x86-linux-musl
288+
needs: build_native_gem
289+
strategy:
290+
fail-fast: false
291+
matrix:
292+
ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"]
293+
platform: [x86-linux-musl]
294+
runs-on: ubuntu-latest
295+
steps:
296+
- uses: actions/checkout@v3
297+
- name: Download gem-${{ matrix.platform }}
298+
uses: actions/download-artifact@v3
299+
with:
300+
name: gem-${{ matrix.platform }}
301+
- name: Run tests
302+
run: |
303+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
304+
docker run --rm -v $PWD:/work -w /work \
305+
ruby:${{ matrix.ruby }}-alpine --platform=linux/386 \
306+
sh -c "
307+
gem install --local *.gem --verbose &&
308+
cd test/rcd_test/ &&
309+
bundle install &&
310+
ruby -rrcd_test -S rake test
311+
"
312+
259313
test_native_gem:
260314
name: test native
261315
needs: build_native_gem

0 commit comments

Comments
 (0)