|
57 | 57 | static: true
|
58 | 58 | - platform: x86-linux-gnu
|
59 | 59 | alias: x86-linux
|
| 60 | + - platform: x86-linux-musl |
60 | 61 | - platform: x86-mingw32
|
61 | 62 | - platform: x86_64-darwin
|
62 | 63 | - platform: x86_64-linux-gnu
|
@@ -254,6 +255,68 @@ jobs:
|
254 | 255 | ruby -rrcd_test -S rake test
|
255 | 256 | "
|
256 | 257 |
|
| 258 | + test_x86-linux-gnu: |
| 259 | + name: x86-linux-gnu |
| 260 | + needs: build_native_gem |
| 261 | + strategy: |
| 262 | + fail-fast: false |
| 263 | + matrix: |
| 264 | + ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"] |
| 265 | + platform: [x86-linux] |
| 266 | + include: |
| 267 | + # ruby 3.0 and earlier ship rubygems < 3.2.33, so can't recognize the -gnu suffix |
| 268 | + - ruby: "3.3" |
| 269 | + platform: x86-linux-gnu |
| 270 | + - ruby: "3.2" |
| 271 | + platform: x86-linux-gnu |
| 272 | + - ruby: "3.1" |
| 273 | + platform: x86-linux-gnu |
| 274 | + runs-on: ubuntu-latest |
| 275 | + steps: |
| 276 | + - uses: actions/checkout@v3 |
| 277 | + - name: Download gem-${{ matrix.platform }} |
| 278 | + uses: actions/download-artifact@v3 |
| 279 | + with: |
| 280 | + name: gem-${{ matrix.platform }} |
| 281 | + - name: Run tests |
| 282 | + run: | |
| 283 | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes |
| 284 | + docker run --rm -v $PWD:/work -w /work \ |
| 285 | + --platform=linux/386 ruby:${{ matrix.ruby }} \ |
| 286 | + sh -c " |
| 287 | + gem install --local *.gem --verbose && |
| 288 | + cd test/rcd_test/ && |
| 289 | + bundle install && |
| 290 | + ruby -rrcd_test -S rake test |
| 291 | + " |
| 292 | +
|
| 293 | + test_x86-linux-musl: |
| 294 | + name: x86-linux-musl |
| 295 | + needs: build_native_gem |
| 296 | + strategy: |
| 297 | + fail-fast: false |
| 298 | + matrix: |
| 299 | + ruby: ["3.3", "3.2", "3.1", "3.0", "2.7"] # ruby:2.6-alpine and earlier ship with rubygems that doesn't recognize the -musl suffix |
| 300 | + platform: [x86-linux-musl] |
| 301 | + runs-on: ubuntu-latest |
| 302 | + steps: |
| 303 | + - uses: actions/checkout@v3 |
| 304 | + - name: Download gem-${{ matrix.platform }} |
| 305 | + uses: actions/download-artifact@v3 |
| 306 | + with: |
| 307 | + name: gem-${{ matrix.platform }} |
| 308 | + - name: Run tests |
| 309 | + run: | |
| 310 | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes |
| 311 | + docker run --rm -v $PWD:/work -w /work \ |
| 312 | + --platform=linux/386 ruby:${{ matrix.ruby }}-alpine \ |
| 313 | + sh -c " |
| 314 | + gem install --local *.gem --verbose && |
| 315 | + cd test/rcd_test/ && |
| 316 | + bundle install && |
| 317 | + ruby -rrcd_test -S rake test |
| 318 | + " |
| 319 | +
|
257 | 320 | test_native_gem:
|
258 | 321 | name: test native
|
259 | 322 | needs: build_native_gem
|
|
0 commit comments