Skip to content

Commit

Permalink
Provide precompiled gem for aarch64-linux-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jan 8, 2025
1 parent 66e1ea5 commit f10db7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- "x64-mingw-ucrt"
- "x86_64-linux-gnu"
- "x86_64-linux-musl"
- "aarch64-linux-gnu"

name: cross-compile
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -324,6 +325,7 @@ jobs:
platform:
- "x86_64-linux-gnu"
- "x86_64-linux-musl"
- "aarch64-linux-gnu"

ruby-version:
- "2.7"
Expand All @@ -338,6 +340,9 @@ jobs:
docker_tag: "-alpine"
bootstrap: "apk add -U build-base &&" # required to compile bigdecimal on Ruby 2.7

- platform: aarch64-linux-gnu
docker_platform: "--platform=linux/arm64"

name: install-linux
runs-on: ubuntu-22.04
steps:
Expand All @@ -349,6 +354,10 @@ jobs:
name: gem-${{ matrix.platform }}
path: precompiled/gems

- name: Setup QEMU for docker
uses: docker/setup-qemu-action@v3
if: ${{ matrix.docker_platform }} != ''

- run: |
docker run --rm -v $PWD/precompiled:/precompiled -w /precompiled \
${{ matrix.docker_platform }} ruby:${{ matrix.ruby-version }}${{ matrix.docker_tag }} \
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CrossLibraries = [
['x64-mingw32', 'mingw64'],
['x86_64-linux-gnu', 'linux-x86_64'],
['x86_64-linux-musl', 'linux-x86_64'],
['aarch64-linux-gnu', 'linux-aarch64'],
].map do |platform, openssl_config|
CrossLibrary.new platform, openssl_config
end
Expand Down

0 comments on commit f10db7f

Please sign in to comment.