diff options
author | Michael Forney <mforney@mforney.org> | 2024-04-21 18:34:45 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-04-21 18:34:45 -0700 |
commit | 06f2fe9487c8b0cb42ba8ff254ff8bdc1fe31a1f (patch) | |
tree | 17c86298759fa3443fa5ef9ed5225ff6cd3f9c0d | |
parent | c819539b064e0cc4f71a8d48eddbeec5fbea1b86 (diff) |
CI: Add debian-riscv64 builder
-rw-r--r-- | .builds/debian-riscv64.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.builds/debian-riscv64.yml b/.builds/debian-riscv64.yml new file mode 100644 index 0000000..b2d8a50 --- /dev/null +++ b/.builds/debian-riscv64.yml @@ -0,0 +1,26 @@ +image: debian/stable +packages: +- gcc-riscv64-linux-gnu +- libc-dev-riscv64-cross +- qemu-user +- qemu-user-binfmt +sources: +- https://git.sr.ht/~mcf/cproc +- git://c9x.me/qbe.git +tasks: +- build: | + PATH=$HOME/qbe:$PATH + make -C qbe + cd cproc + crtbegin=$(riscv64-linux-gnu-gcc -print-file-name=crtbegin.o) + ./configure \ + --target=riscv64-linux-gnu \ + --with-ldso=/usr/riscv64-linux-gnu/lib/ld-linux-riscv64-lp64d.so.1 \ + --with-gcc-libdir="${crtbegin%/*}" + make all check + make bootstrap LDFLAGS='-Wl,-rpath,/usr/riscv64-linux-gnu/lib' + riscv64-linux-gnu-readelf -h stage2/cproc stage2/cproc-qbe +triggers: +- action: email + condition: failure + to: "<~mcf/cproc-builds@lists.sr.ht>" |