|
49 | 49 | alias: aarch64-linux
|
50 | 50 | - platform: arm-linux-gnu
|
51 | 51 | alias: arm-linux
|
| 52 | + - platform: arm-linux-musl |
52 | 53 | - platform: arm64-darwin
|
53 | 54 | - platform: jruby
|
54 | 55 | - platform: x64-mingw-ucrt
|
@@ -317,6 +318,68 @@ jobs:
|
317 | 318 | ruby -rrcd_test -S rake test
|
318 | 319 | "
|
319 | 320 |
|
| 321 | + test_arm-linux-gnu: |
| 322 | + name: arm-linux-gnu |
| 323 | + needs: build_native_gem |
| 324 | + strategy: |
| 325 | + fail-fast: false |
| 326 | + matrix: |
| 327 | + ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"] |
| 328 | + platform: [arm-linux] |
| 329 | + include: |
| 330 | + # ruby 3.0 and earlier ship rubygems < 3.2.33, so can't recognize the -gnu suffix |
| 331 | + - ruby: "3.3" |
| 332 | + platform: arm-linux-gnu |
| 333 | + - ruby: "3.2" |
| 334 | + platform: arm-linux-gnu |
| 335 | + - ruby: "3.1" |
| 336 | + platform: arm-linux-gnu |
| 337 | + runs-on: ubuntu-latest |
| 338 | + steps: |
| 339 | + - uses: actions/checkout@v3 |
| 340 | + - name: Download gem-${{ matrix.platform }} |
| 341 | + uses: actions/download-artifact@v3 |
| 342 | + with: |
| 343 | + name: gem-${{ matrix.platform }} |
| 344 | + - name: Run tests |
| 345 | + run: | |
| 346 | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes |
| 347 | + docker run --rm -v $PWD:/work -w /work \ |
| 348 | + --platform=linux/arm/v7 ruby:${{ matrix.ruby }} \ |
| 349 | + sh -c " |
| 350 | + gem install --local *.gem --verbose && |
| 351 | + cd test/rcd_test/ && |
| 352 | + bundle install && |
| 353 | + ruby -rrcd_test -S rake test |
| 354 | + " |
| 355 | +
|
| 356 | + test_arm-linux-musl: |
| 357 | + name: arm-linux-musl |
| 358 | + needs: build_native_gem |
| 359 | + strategy: |
| 360 | + fail-fast: false |
| 361 | + matrix: |
| 362 | + ruby: ["3.3", "3.2", "3.1"] # TODO can we update rubygems and get earlier images working? |
| 363 | + platform: [arm-linux-musl] |
| 364 | + runs-on: ubuntu-latest |
| 365 | + steps: |
| 366 | + - uses: actions/checkout@v3 |
| 367 | + - name: Download gem-${{ matrix.platform }} |
| 368 | + uses: actions/download-artifact@v3 |
| 369 | + with: |
| 370 | + name: gem-${{ matrix.platform }} |
| 371 | + - name: Run tests |
| 372 | + run: | |
| 373 | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes |
| 374 | + docker run --rm -v $PWD:/work -w /work \ |
| 375 | + --platform=linux/arm/v7 ruby:${{ matrix.ruby }}-alpine \ |
| 376 | + sh -c " |
| 377 | + gem install --local *.gem --verbose && |
| 378 | + cd test/rcd_test/ && |
| 379 | + bundle install && |
| 380 | + ruby -rrcd_test -S rake test |
| 381 | + " |
| 382 | +
|
320 | 383 | test_native_gem:
|
321 | 384 | name: test native
|
322 | 385 | needs: build_native_gem
|
|
0 commit comments