Try to compile ARM64 by pushing newest qemu user

This commit is contained in:
Kamil Trzciński 2022-05-04 10:16:31 +02:00
parent 47097cdd06
commit 3121cbeb2e
3 changed files with 11 additions and 0 deletions

View file

@ -2,6 +2,7 @@
stage: custom
needs: []
script:
- ./scripts/register-binfmt
- ./scripts/lib/custom-docker-build
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"

View file

@ -10,6 +10,7 @@ gitlab:
parallel:
matrix:
- DEBIAN: ['bullseye']
ARCH: ['arm64', 'amd64']
RUBY: ['2.7.patched', '3.0.patched']
GIT: ['2.36']
POSTGRESQL: ['11', '12', '13']

9
scripts/register-binfmt Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
ls -al /proc/sys/fs/binfmt_misc
echo -1 > /proc/sys/fs/binfmt_misc/qemu-aarch64 || true
apk add -U qemu-aarch64
echo ":qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64:OCF" > /proc/sys/fs/binfmt_misc/register