Skip to content

Commit

Permalink
Add Musl builds for all Linux precompiled gems
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Dec 15, 2024
1 parent 502791b commit 9dc86e2
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -274,18 +275,26 @@ 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"
strategy:
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
Expand All @@ -295,18 +304,26 @@ 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"
strategy:
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
Expand All @@ -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"
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9dc86e2

Please sign in to comment.