diff --git a/Docker/Test-Build-Alpine.docker b/Docker/Test-Build-Alpine.docker new file mode 100644 index 0000000..6ce5ddb --- /dev/null +++ b/Docker/Test-Build-Alpine.docker @@ -0,0 +1,16 @@ +# Using Ubuntu 20.04 seems to be simplest way to get an LLVM-11 that works +FROM alpine:latest +RUN apk add build-base llvm14-dev clang14-dev llvm14-static clang14-static cmake make diffutils + +# Copy the source into the Docker container +RUN mkdir -p /c2ffi +COPY / /c2ffi +WORKDIR /c2ffi + +# Build c2ffi +RUN cd /c2ffi && \ + rm -rf build && mkdir -p build && cd build && \ + cmake -DBUILD_CONFIG=Release .. && make + +# As a sanity check, make sure the binary we built can be executed +RUN /c2ffi/build/bin/c2ffi --help diff --git a/Docker/Test-Build-Ubuntu-22.04.docker b/Docker/Test-Build-Ubuntu-22.04.docker new file mode 100644 index 0000000..7d8e01c --- /dev/null +++ b/Docker/Test-Build-Ubuntu-22.04.docker @@ -0,0 +1,16 @@ +FROM ubuntu:22.04 +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y g++ llvm-14 clang-14 libclang-14-dev libclang-cpp14-dev cmake + +# Copy the source into the Docker container +RUN mkdir -p /c2ffi +COPY / /c2ffi +WORKDIR /c2ffi + +# Build c2ffi +RUN cd /c2ffi && \ + rm -rf build && mkdir -p build && cd build && \ + cmake -DBUILD_CONFIG=Release .. && make + +# As a sanity check, make sure the binary we built can be executed +RUN /c2ffi/build/bin/c2ffi --help