1FROM debian:bullseye-slim
2RUN apt-get update && apt-get install --no-install-recommends -y \
3  binfmt-support \
4  clang \
5  cmake \
6  gcc \
7  gcc-9-aarch64-linux-gnu \
8  g++-9-aarch64-linux-gnu \
9  make \
10  qemu-user-static
11COPY . /simde
12
13RUN mkdir -p /simde/test/build_gcc_arm64
14WORKDIR /simde/test/build_gcc_arm64
15RUN CC=/usr/bin/aarch64-linux-gnu-gcc-9 CXX=/usr/bin/aarch64-linux-gnu-g++-9 \
16  cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_C_FLAGS="-march=armv8-a" \
17  -DCMAKE_CXX_FLAGS="-march=armv8-a" ../ && make -j$(nproc)
18RUN QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/ /usr/bin/qemu-aarch64-static ./run-tests
19
20RUN mkdir -p /simde/test/build_arm64_clang
21WORKDIR /simde/test/build_arm64_clang
22RUN CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
23  -DCMAKE_C_FLAGS="--target=aarch64-linux-gnu -I/usr/aarch64-linux-gnu/include" \
24  -DCMAKE_CXX_FLAGS="--target=aarch64-linux-gnu -I/usr/aarch64-linux-gnu/include" \
25  ../ && make -j$(nproc)
26RUN QEMU_LD_PREFIX=/usr/s390x-linux-gnu/ /usr/bin/qemu-s390x-static ./run-tests
27