diff options
author | Michael Forney <mforney@mforney.org> | 2019-05-08 23:12:49 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-05-08 23:14:35 -0700 |
commit | de20a4f5c6638e00bf91d757e21ea0a20eac649a (patch) | |
tree | 57d5108ad6143f66f7a4f6dc9f9d64d7ff5fd2a4 | |
parent | edaab94419b857c441ed8025d0a28103e99e7d55 (diff) | |
download | cproc-de20a4f5c6638e00bf91d757e21ea0a20eac649a.tar.xz |
Add aarch64 continuous build
-rw-r--r-- | .builds/alpine-aarch64.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.builds/alpine-aarch64.yml b/.builds/alpine-aarch64.yml new file mode 100644 index 0000000..1719892 --- /dev/null +++ b/.builds/alpine-aarch64.yml @@ -0,0 +1,29 @@ +image: alpine/latest +packages: +- qemu-aarch64 +- qemu-openrc +sources: +- https://git.sr.ht/~mcf/cc +- https://git.sr.ht/~mcf/qbe +environment: + PATH: $HOME/qbe/obj:$HOME/aarch64-linux-musl-cross/bin:$PATH +tasks: +- setup: | + # work around bugs in qemu-binfmt + sudo sed -i -e '/qemu_suffix:=/d' -e 's/printf/env &/' /etc/init.d/qemu-binfmt + sudo /etc/init.d/qemu-binfmt start + curl -O http://musl.cc/aarch64-linux-musl-cross.tgz + tar --warning=no-unknown-keyword -xzf aarch64-linux-musl-cross.tgz +- build: | + cd qbe + cat >config.h <<EOF + #define Defasm Gaself + #define Deftgt T_arm64 + EOF + make + cd ../cc + ./configure \ + --target=aarch64-linux-musl \ + --with-ldso="$HOME/aarch64-linux-musl-cross/aarch64-linux-musl/lib/libc.so" + make all check bootstrap + file stage2/cc stage2/cc-qbe |