Skip to content

Commit 0dbd851

Browse files
committed
Provide linux/arm64 images for m1s
1 parent e59bf11 commit 0dbd851

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- arm-linux
3434
- aarch64-linux
3535
- jruby
36+
docker-platform:
37+
- linux/amd64
38+
- linux/arm64
3639

3740
runs-on: ubuntu-latest
3841
env:
@@ -53,10 +56,13 @@ jobs:
5356
ruby-version: "3.0"
5457
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
5558

59+
- name: Set up QEMU
60+
uses: docker/setup-qemu-action@v2
61+
5662
- name: Build docker image
5763
run: |
5864
docker buildx create --driver docker-container --use
59-
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,src=tmp/build-cache --cache-to=type=local,dest=tmp/build-cache-new --load"
65+
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="docker buildx build --platform ${{ inputs.docker-platform }} --cache-from=type=local,src=tmp/build-cache --cache-to=type=local,dest=tmp/build-cache-new --load"
6066
6167
- name: Move build cache and remove outdated layers
6268
run: |

0 commit comments

Comments
 (0)