diff --git a/.buildbot.sh b/.buildbot.sh new file mode 100755 index 0000000000..26cb4d4ecc --- /dev/null +++ b/.buildbot.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eu + +# First build without the JIT and check the tests still work. +./autogen.sh +mkdir build && cd build +../configure +make btest -j $(nproc) diff --git a/.buildbot_dockerfile_debian b/.buildbot_dockerfile_debian new file mode 100644 index 0000000000..b82af7bde7 --- /dev/null +++ b/.buildbot_dockerfile_debian @@ -0,0 +1,22 @@ +FROM debian:latest +WORKDIR /ci +RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \ + --mount=target=/var/cache/apt,type=cache,sharing=locked \ + rm -f /etc/apt/apt.conf.d/docker-clean && \ + apt-get update && \ + apt-get -y install clang-15 autoconf make curl procps file git cmake python3 ruby-full \ + libtinfo-dev libzip-dev mold ninja-build gdb && \ + update-alternatives --install /usr/bin/cc cc /usr/bin/clang-15 999 && \ + update-alternatives --set cc /usr/bin/clang-15 && \ + update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-15 999 && \ + update-alternatives --set c++ /usr/bin/clang++-15 && \ + update-alternatives --install /usr/bin/ld ld /usr/bin/mold 999 && \ + update-alternatives --set ld /usr/bin/mold && \ + ln -sf /usr/bin/clang-15 /usr/bin/clang && \ + ln -sf /usr/bin/clang++-15 /usr/bin/clang++ +ARG CI_UID +RUN useradd -m -u ${CI_UID} ci && chown ${CI_UID}:${CI_UID} . +ARG CI_RUNNER +ENV CI_RUNNER=${CI_RUNNER} +COPY --chown=${CI_UID}:${CI_UID} . . +CMD ["sh", "-x", ".buildbot.sh"] diff --git a/.github/workflows/sdci.yml b/.github/workflows/sdci.yml new file mode 100644 index 0000000000..f20da180a8 --- /dev/null +++ b/.github/workflows/sdci.yml @@ -0,0 +1,11 @@ +on: + pull_request: + merge_group: + +# This is required to silence emails about the workflow having no jobs. +# We simply define a dummy job that does nothing much. +jobs: + dummy: + runs-on: ubuntu-latest + steps: + - run: /usr/bin/true