File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1515 - " x64-mingw-ucrt"
1616 - " x86_64-linux-gnu"
1717 - " x86_64-linux-musl"
18+ - " aarch64-linux-gnu"
1819
1920 name : cross-compile
2021 runs-on : ubuntu-22.04
@@ -324,6 +325,7 @@ jobs:
324325 platform :
325326 - " x86_64-linux-gnu"
326327 - " x86_64-linux-musl"
328+ - " aarch64-linux-gnu"
327329
328330 ruby-version :
329331 - " 2.7"
@@ -338,6 +340,9 @@ jobs:
338340 docker_tag : " -alpine"
339341 bootstrap : " apk add -U build-base &&" # required to compile bigdecimal on Ruby 2.7
340342
343+ - platform : aarch64-linux-gnu
344+ docker_platform : " --platform=linux/arm64"
345+
341346 name : install-linux
342347 runs-on : ubuntu-22.04
343348 steps :
@@ -349,6 +354,10 @@ jobs:
349354 name : gem-${{ matrix.platform }}
350355 path : precompiled/gems
351356
357+ - name : Setup QEMU for docker
358+ uses : docker/setup-qemu-action@v3
359+ if : ${{ matrix.docker_platform }} != ''
360+
352361 - run : |
353362 docker run --rm -v $PWD/precompiled:/precompiled -w /precompiled \
354363 ${{ matrix.docker_platform }} ruby:${{ matrix.ruby-version }}${{ matrix.docker_tag }} \
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ CrossLibraries = [
1212[ 'x64-mingw32' , 'mingw64' ] ,
1313 [ 'x86_64-linux-gnu' , 'linux-x86_64' ] ,
1414 [ 'x86_64-linux-musl' , 'linux-x86_64' ] ,
15+ [ 'aarch64-linux-gnu' , 'linux-aarch64' ] ,
1516] . map do |platform , openssl_config |
1617CrossLibrary . new platform , openssl_config
1718end
You can’t perform that action at this time.
0 commit comments