bee2d.Dockerfile 582 B

1234567891011121314151617181920212223242526272829
  1. FROM --platform=$TARGETPLATFORM btls/debian:cdev
  2. COPY . /usr/src
  3. RUN gcc --version
  4. RUN clang --version
  5. RUN cat /etc/os-release
  6. WORKDIR /usr/src
  7. RUN rm -rf ./build_gcc; mkdir build_gcc
  8. RUN rm -rf ./build_clang; mkdir build_clang
  9. WORKDIR /usr/src/build_gcc
  10. RUN CC=gcc cmake ..
  11. RUN make
  12. RUN make install
  13. RUN ctest --verbose
  14. WORKDIR /usr/src/build_gcc/cmd
  15. RUN cp ../../cmd/test/* . && ./test.sh
  16. WORKDIR /usr/src/build_clang
  17. RUN CC=clang cmake ..
  18. RUN make
  19. RUN make install
  20. RUN ctest --verbose
  21. WORKDIR /usr/src/build_clang/cmd
  22. RUN cp ../../cmd/test/* . && ./test.sh
  23. WORKDIR /usr/src