diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0ef6eec..3378f85 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -265,6 +265,7 @@ jobs: fail-fast: false matrix: ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + musl: [false, true] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -274,11 +275,18 @@ jobs: path: pkg - name: Enable execution of multi-architecture containers by QEMU run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - run: | + - if: ${{ !matrix.musl }} + run: | docker run --rm -v "$(pwd):/re2" -w /re2 \ - --platform=linux/arm64/v8 \ + --platform=linux/arm64 \ ruby:${{ matrix.ruby }} \ ./scripts/test-gem-install + - if: ${{ matrix.musl }} + run: | + docker run --rm -v "$(pwd):/re2" -w /re2 \ + --platform=linux/arm64 \ + ruby:${{ matrix.ruby }}-alpine \ + sh -c "apk add bash libstdc++ gcompat && ./scripts/test-gem-install" test-precompiled-arm-linux: needs: "precompile-arm-linux" @@ -286,6 +294,7 @@ jobs: fail-fast: false matrix: ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + musl: [false, true] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -295,11 +304,18 @@ jobs: path: pkg - name: enable execution of multi-architecture containers by qemu run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - run: | + - if: ${{ !matrix.musl }} + run: | docker run --rm -v "$(pwd):/re2" -w /re2 \ --platform=linux/arm/v7 \ ruby:${{ matrix.ruby }} \ ./scripts/test-gem-install + - if: ${{ matrix.musl }} + run: | + docker run --rm -v "$(pwd):/re2" -w /re2 \ + --platform=linux/arm/v7 \ + ruby:${{ matrix.ruby }}-alpine \ + sh -c "apk add bash libstdc++ gcompat && ./scripts/test-gem-install" test-precompiled-x86-linux: needs: "precompile-x86-linux" @@ -307,6 +323,7 @@ jobs: fail-fast: false matrix: ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + musl: [false, true] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -316,11 +333,18 @@ jobs: path: pkg - name: Enable execution of multi-architecture containers by QEMU run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - run: | + - if: ${{ !matrix.musl }} + run: | docker run --rm -v "$(pwd):/re2" -w /re2 \ --platform=linux/386 \ ruby:${{ matrix.ruby }} \ ./scripts/test-gem-install + - if: ${{ matrix.musl }} + run: | + docker run --rm -v "$(pwd):/re2" -w /re2 \ + --platform=linux/386 \ + ruby:${{ matrix.ruby }}-alpine \ + sh -c "apk add bash libstdc++ gcompat && ./scripts/test-gem-install" test-precompiled-x86_64-linux: needs: "precompile-x86_64-linux" @@ -343,6 +367,24 @@ jobs: env: BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle + test-precompiled-x86_64-alpine: + needs: "precompile-x86_64-linux" + strategy: + fail-fast: false + matrix: + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] + runs-on: ubuntu-latest + container: + image: "ruby:${{ matrix.ruby }}-alpine" + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: cruby-x86_64-linux-gem + path: pkg + - run: apk add bash libstdc++ gcompat + - run: ./scripts/test-gem-install + test-precompiled-arm64-darwin: needs: "precompile-arm64-darwin" strategy: @@ -429,48 +471,6 @@ jobs: env: BUNDLE_PATH: ${{ github.workspace }}/vendor/bundle - test-precompiled-x86_64-alpine: - needs: "precompile-x86_64-linux" - strategy: - fail-fast: false - matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] - runs-on: ubuntu-latest - container: - image: "ruby:${{ matrix.ruby }}-alpine" - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: cruby-x86_64-linux-gem - path: pkg - - run: apk add bash libstdc++ gcompat - - run: ./scripts/test-gem-install - - test-precompiled-x86-alpine: - needs: "precompile-x86-linux" - strategy: - fail-fast: false - matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: cruby-x86-linux-gem - path: pkg - - name: Enable execution of multi-architecture containers by QEMU - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - run: | - docker run --rm -v "$(pwd):/re2" -w /re2 \ - --platform=linux/386 \ - ruby:${{ matrix.ruby }}-alpine \ - sh -c " - apk add bash libstdc++ gcompat && - ./scripts/test-gem-install - " - ruby-memcheck: runs-on: "ubuntu-latest" env: